chore: sing-box grpc servicename 应为字符串

This commit is contained in:
xream committed 2024-02-17 12:03:25 +08:00
1 parent 4a070a72b0
commit e3c1533d40
2 files changed
+3 -3

No files matched your search

@@ -178,8 +178,8 @@ const grpcParser = (proxy, parsedProxy) => {
const transport = { type: 'grpc' };
if (proxy['grpc-opts']) {
const serviceName = proxy['grpc-opts']['grpc-service-name'];
if (serviceName && serviceName !== '')
transport.service_name = serviceName;
if (serviceName != null && serviceName !== '')
transport.service_name = `${serviceName}`;
}
parsedProxy.transport = transport;
};