Files

21 lines
367 B
Go
Raw Permalink Normal View History

2021-03-14 15:02:07 +00:00
package grpc
import (
2021-06-27 16:41:19 +08:00
"net/url"
2021-03-14 15:02:07 +00:00
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/transport/internet"
)
const protocolName = "grpc"
func init() {
common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} {
return new(Config)
}))
}
2021-06-27 16:41:19 +08:00
func (c *Config) getNormalizedName() string {
return url.PathEscape(c.ServiceName)
}