update golib, fix #959

This commit is contained in:
fatedier
2018-11-07 21:10:47 +08:00
parent 3b3f3dc2b5
commit a1ac002694
12 changed files with 79 additions and 2531 deletions

View File

@@ -43,6 +43,7 @@ func DialTcpByProxy(proxyStr string, addr string) (c net.Conn, err error) {
auth := &ProxyAuth{}
if proxyUrl.User != nil {
auth.Enable = true
auth.Username = proxyUrl.User.Username()
auth.Passwd, _ = proxyUrl.User.Password()
}