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'] = '/';