Merge pull request #10 from iamqizhao/master

Correct the ServerName setting for TLS credentials.
This commit is contained in:
Qi Zhao
2015-01-23 15:06:18 -08:00

View File

@ -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
}