From 7e4f6e5131ac79c4aad42c035c3ebcf5873240ab Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 17 Mar 2024 20:21:40 +0100 Subject: [PATCH] [sub] fix grpc authority failure --- sub/subService.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sub/subService.go b/sub/subService.go index 18bf7bd5..2241e2c5 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -349,7 +349,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" } @@ -535,7 +535,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" } @@ -717,7 +717,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" }