- Timestamp:
- Apr 8, 2020, 12:51:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/morty.go
r104 r109 22 22 23 23 "github.com/valyala/fasthttp" 24 "github.com/valyala/fasthttp/fasthttpproxy" 24 25 "golang.org/x/net/html" 25 26 "golang.org/x/net/html/charset" … … 990 991 version := flag.Bool("version", false, "Show version") 991 992 requestTimeout := flag.Uint("timeout", 2, "Request timeout") 993 socks5 := flag.String("socks5", "", "SOCKS5 proxy") 992 994 flag.Parse() 993 995 … … 998 1000 999 1001 if *ipv6 { 1000 CLIENT.Dial = fasthttp.DialDualStack 1002 CLIENT.DialDualStack = true 1003 } 1004 1005 if *socks5 != "" { 1006 // this disables CLIENT.DialDualStack 1007 CLIENT.Dial = fasthttpproxy.FasthttpSocksDialer(*socks5) 1001 1008 } 1002 1009
Note:
See TracChangeset
for help on using the changeset viewer.