mirror of
https://github.com/v2board/v2board.git
synced 2025-01-26 16:09:09 +08:00
fix: shadowrocket grpc
This commit is contained in:
parent
dfef6d2d94
commit
f95deb3f16
@ -49,7 +49,7 @@ class Shadowrocket
|
|||||||
if (isset($server['networkSettings'])) {
|
if (isset($server['networkSettings'])) {
|
||||||
$grpcObject = json_decode($server['networkSettings'], true);
|
$grpcObject = json_decode($server['networkSettings'], true);
|
||||||
if (isset($grpcObject['serviceName'])) {
|
if (isset($grpcObject['serviceName'])) {
|
||||||
$config['obfsParam'] = json_decode([
|
$config['obfsParam'] = json_encode([
|
||||||
'Host' => $grpcObject['serviceName']
|
'Host' => $grpcObject['serviceName']
|
||||||
]);
|
]);
|
||||||
$config['path'] = '/';
|
$config['path'] = '/';
|
||||||
|
Loading…
Reference in New Issue
Block a user