mirror of https://github.com/grpc/grpc-go.git
Merge pull request #65 from grpc/revert-64-master
Revert "init serverName correctly"
This commit is contained in:
commit
32527e92db
|
|
@ -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 {
|
||||||
sn := *serverHost
|
var sn string
|
||||||
if *tlsServerName != "" {
|
if *tlsServerName != "" {
|
||||||
sn = *tlsServerName
|
sn = *tlsServerName
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue