From 21d988133ead6ceff9416c363927a15e87d07ad2 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Mon, 1 Apr 2024 12:09:45 +0430 Subject: [PATCH] [sub] fix grpc authority failure Co-Authored-By: Alireza Ahmadi --- sub/subService.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sub/subService.go b/sub/subService.go index da286641..42713756 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -357,7 +357,7 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string { case "grpc": grpc, _ := stream["grpcSettings"].(map[string]interface{}) params["serviceName"] = grpc["serviceName"].(string) - params["authority"] = grpc["authority"].(string) + params["authority"], _ = grpc["authority"].(string) if grpc["multiMode"].(bool) { params["mode"] = "multi" } @@ -574,7 +574,7 @@ func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string case "grpc": grpc, _ := stream["grpcSettings"].(map[string]interface{}) params["serviceName"] = grpc["serviceName"].(string) - params["authority"] = grpc["authority"].(string) + params["authority"], _ = grpc["authority"].(string) if grpc["multiMode"].(bool) { params["mode"] = "multi" } @@ -792,7 +792,7 @@ func (s *SubService) genShadowsocksLink(inbound *model.Inbound, email string) st case "grpc": grpc, _ := stream["grpcSettings"].(map[string]interface{}) params["serviceName"] = grpc["serviceName"].(string) - params["authority"] = grpc["authority"].(string) + params["authority"], _ = grpc["authority"].(string) if grpc["multiMode"].(bool) { params["mode"] = "multi" }