From 2063e3c51dc3b66e0a6f7868a0f93b704a67587b Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Sun, 15 Nov 2020 23:42:58 +0800 Subject: [PATCH] update: quantumult --- 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 d0a70e4e..ee9db7e4 100644 --- a/app/Http/Controllers/Client/ClientController.php +++ b/app/Http/Controllers/Client/ClientController.php @@ -66,7 +66,7 @@ class ClientController extends Controller if ($item['network'] === 'ws') { $str .= ', obfs=ws'; if ($item['networkSettings']) { - $wsSettings = json_decode($item['networkSettings']); + $wsSettings = json_decode($item['networkSettings'], true); if (isset($wsSettings['path'])) $str .= ', obfs-path="' . $wsSettings['path'] . '"'; if (isset($wsSettings['headers']['Host'])) $str .= ', obfs-header="Host:' . $wsSettings['headers']['Host'] . '"'; }