Merge pull request #10 from iamqizhao/master
Correct the ServerName setting for TLS credentials.
This commit is contained in:
@ -227,7 +227,7 @@ func main() {
|
||||
serverAddr := net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
|
||||
var opts []rpc.DialOption
|
||||
if *useTLS {
|
||||
sn := *serverHost
|
||||
var sn string
|
||||
if *tlsServerName != "" {
|
||||
sn = *tlsServerName
|
||||
}
|
||||
|
Reference in New Issue
Block a user