mirror of https://github.com/grpc/grpc-go.git
commit
5de4c2c381
|
|
@ -302,7 +302,7 @@ func main() {
|
||||||
serverAddr := net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
|
serverAddr := net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
|
||||||
var opts []grpc.DialOption
|
var opts []grpc.DialOption
|
||||||
if *useTLS {
|
if *useTLS {
|
||||||
var sn string
|
sn := *serverHost
|
||||||
if *tlsServerName != "" {
|
if *tlsServerName != "" {
|
||||||
sn = *tlsServerName
|
sn = *tlsServerName
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue