From d2a0422f64ef3c7854f98880c44fd7cd030eb44e Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Fri, 13 Mar 2020 13:47:02 +0800 Subject: [PATCH] pr #109 --- app/Http/Controllers/Client/ClientController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Client/ClientController.php b/app/Http/Controllers/Client/ClientController.php index c9fb3e6c..b60a6b6b 100755 --- a/app/Http/Controllers/Client/ClientController.php +++ b/app/Http/Controllers/Client/ClientController.php @@ -48,7 +48,7 @@ class ClientController extends Controller foreach ($server as $item) { $uri .= "vmess=" . $item->host . ":" . $item->port . ", method=none, password=" . $user->v2ray_uuid . ", fast-open=false, udp-relay=false, tag=" . $item->name; if ($item->network == 'ws') { - $uri .= ', obfs=ws'; + $uri .= ', obfs=' . $item->tls ? 'wss' : 'ws'; if ($item->networkSettings) { $wsSettings = json_decode($item->networkSettings); if (isset($wsSettings->path)) $uri .= ', obfs-uri=' . $wsSettings->path;