gRPC: Use PathEscape encoded service name

This commit is contained in:
hmol233 2021-06-27 16:41:19 +08:00
parent d45298a10d
commit 3dc9fba20d
No known key found for this signature in database
GPG key ID: D617A9DAB0C992D5
4 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,8 @@
package grpc
import (
"net/url"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/transport/internet"
)
@ -12,3 +14,7 @@ func init() {
return new(Config)
}))
}
func (c *Config) getNormalizedName() string {
return url.PathEscape(c.ServiceName)
}