Skip to content

Commit

Permalink
fix panic error when reconnecting using tls
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Mar 26, 2019
1 parent c6bf6f5 commit 9cee263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions utils/net/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion utils/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"
)

var version string = "0.25.2"
var version string = "0.25.3"

func Full() string {
return version
Expand Down

0 comments on commit 9cee263

Please sign in to comment.