mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix: shadowrocket grpc
This commit is contained in:
parent
a4e1ba4016
commit
0284e47155
@ -50,10 +50,11 @@ class Shadowrocket
|
|||||||
$grpcSettings = json_decode($server['networkSettings'], true);
|
$grpcSettings = json_decode($server['networkSettings'], true);
|
||||||
if (isset($grpcSettings['serviceName']) && !empty($grpcSettings['serviceName']))
|
if (isset($grpcSettings['serviceName']) && !empty($grpcSettings['serviceName']))
|
||||||
$config['path'] = $grpcSettings['serviceName'];
|
$config['path'] = $grpcSettings['serviceName'];
|
||||||
if (isset($grpcSettings['host']) && !empty($grpcSettings['host']))
|
}
|
||||||
$config['obfsParam'] = $grpcSettings['host'];
|
if (isset($tlsSettings)) {
|
||||||
if (!isset($grpcSettings['host']) && !empty($tlsSettings['serverName']))
|
$config['host'] = $tlsSettings['serverName'];
|
||||||
$config['obfsParam'] = $tlsSettings['serverName'];
|
} else {
|
||||||
|
$config['host'] = $server['host'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$query = http_build_query($config, '', '&', PHP_QUERY_RFC3986);
|
$query = http_build_query($config, '', '&', PHP_QUERY_RFC3986);
|
||||||
|
Loading…
Reference in New Issue
Block a user