mirror of
https://github.com/v2board/v2board.git
synced 2025-06-14 21:57:50 +08:00
protocols: fix gRPC protocol serviceName field
fix anXray serverName filed
This commit is contained in:
@ -75,7 +75,7 @@ class SSRPlus
|
||||
}
|
||||
if ((string)$server['network'] === 'grpc') {
|
||||
$grpcSettings = json_decode($server['networkSettings'], true);
|
||||
if (isset($grpcSettings['path'])) $config['path'] = $grpcSettings['serviceName'];
|
||||
if (isset($grpcSettings['serviceName'])) $config['path'] = $grpcSettings['serviceName'];
|
||||
}
|
||||
return "vmess://" . base64_encode(json_encode($config)) . "\r\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user