Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sub
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-04-01 10:39:45 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-04-01 10:39:45 +0300
commit21d988133ead6ceff9416c363927a15e87d07ad2 (patch)
tree24c2c2c40452b394d78f71185dc02775653fe5e1 /sub
parent0633a25d293f2e5bfa5b43dc0ce89d6b5e1d51d1 (diff)
[sub] fix grpc authority failure
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'sub')
-rw-r--r--sub/subService.go6
1 files 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"
}