From 783c5fb5860d8bbabf4041e8ef7eb35004f3b958 Mon Sep 17 00:00:00 2001 From: xboard Date: Wed, 15 Jan 2025 11:45:53 +0800 Subject: [PATCH] feat: add v2rayN v2rayNG mport support --- app/Protocols/General.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Protocols/General.php b/app/Protocols/General.php index ff724cf1..70aa3082 100644 --- a/app/Protocols/General.php +++ b/app/Protocols/General.php @@ -209,6 +209,9 @@ public static function buildHysteria($password, $server) $params['obfs'] = 'salamander'; $params['obfs-password'] = data_get($protocol_settings, 'obfs.password'); } + if(isset($server['ports'])){ + $params['mport'] = $server['ports']; + } $params['insecure'] = data_get($protocol_settings, 'tls.allow_insecure');