From f95deb3f1693b2666b3f86ac7daa493d08e46f8e Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Fri, 2 Jul 2021 21:52:13 +0900 Subject: [PATCH] fix: shadowrocket grpc --- app/Utils/Shadowrocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Shadowrocket.php b/app/Utils/Shadowrocket.php index 299ce1d0..bbf79974 100644 --- a/app/Utils/Shadowrocket.php +++ b/app/Utils/Shadowrocket.php @@ -49,7 +49,7 @@ class Shadowrocket if (isset($server['networkSettings'])) { $grpcObject = json_decode($server['networkSettings'], true); if (isset($grpcObject['serviceName'])) { - $config['obfsParam'] = json_decode([ + $config['obfsParam'] = json_encode([ 'Host' => $grpcObject['serviceName'] ]); $config['path'] = '/';