diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 12:30:00 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 12:30:00 +0300 |
| commit | 01cd7539f91d3dc77114a9387d5b856bdbbdbeda (patch) | |
| tree | c8aee9f7bdb7195df73079c88c221e95443c30e5 /sub/subService.go | |
| parent | 102864525cab2b8dc443dcc8ebf9e72798a79d64 (diff) | |
New - gRPC Authority
Diffstat (limited to 'sub/subService.go')
| -rw-r--r-- | sub/subService.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sub/subService.go b/sub/subService.go index 8aa9b026..97473159 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -213,6 +213,7 @@ func (s *SubService) genVmessLink(inbound *model.Inbound, email string) string { case "grpc": grpc, _ := stream["grpcSettings"].(map[string]interface{}) obj["path"] = grpc["serviceName"].(string) + obj["authority"] = grpc["authority"].(string) if grpc["multiMode"].(bool) { obj["type"] = "multi" } @@ -351,6 +352,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) if grpc["multiMode"].(bool) { params["mode"] = "multi" } @@ -571,6 +573,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) if grpc["multiMode"].(bool) { params["mode"] = "multi" } @@ -792,6 +795,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) if grpc["multiMode"].(bool) { params["mode"] = "multi" } |
