tproxy: fix ipv6 support (#290)

This commit is contained in:
nadoo committed 2021-10-22 18:36:09 +08:00
1 parent e5031ac8d5
commit 807aebc678
4 files changed
+24 -57

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ func init() {
func NewTCP(s string, d proxy.Dialer, p proxy.Proxy) (*TCP, error) {
u, err := url.Parse(s)
if err != nil {
log.F("[tls] parse url err: %s", err)
log.F("[tcp] parse url err: %s", err)
return nil, err
}