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))
|
serverAddr := net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
|
||||||
var opts []rpc.DialOption
|
var opts []rpc.DialOption
|
||||||
if *useTLS {
|
if *useTLS {
|
||||||
sn := *serverHost
|
var sn string
|
||||||
if *tlsServerName != "" {
|
if *tlsServerName != "" {
|
||||||
sn = *tlsServerName
|
sn = *tlsServerName
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user