fix grpc dialer

This commit is contained in:
ginuerzh
2023-03-20 18:28:35 +08:00
parent f32b72ce56
commit 661953e09f
2 changed files with 3 additions and 9 deletions

View File

@ -96,9 +96,6 @@ func ParseHop(cfg *config.HopConfig) (chain.Hop, error) {
})
serverName, _, _ := net.SplitHostPort(v.Addr)
if serverName == "" {
serverName = "localhost"
}
tlsCfg := v.Connector.TLS
if tlsCfg == nil {