fix panic error when reconnecting using tls

This commit is contained in:
fatedier 2019-03-26 19:28:24 +08:00
parent c6bf6f59e6
commit 9cee263c91
2 changed files with 5 additions and 1 deletions

View File

@ -211,6 +211,10 @@ func ConnectServerByProxy(proxyUrl string, protocol string, addr string) (c Conn
func ConnectServerByProxyWithTLS(proxyUrl string, protocol string, addr string, tlsConfig *tls.Config) (c Conn, err error) {
c, err = ConnectServerByProxy(proxyUrl, protocol, addr)
if err != nil {
return
}
if tlsConfig == nil {
return
}

View File

@ -19,7 +19,7 @@ import (
"strings"
)
var version string = "0.25.2"
var version string = "0.25.3"
func Full() string {
return version