-
- Downloads
Use a built in SOCKS 5 server instead of goptlibs.
Differences from my goptlib branch: * Instead of exposing a net.Listener, just expose a Handshake() routine that takes an existing net.Conn. (#14135 is irrelevant to this socks server. * There's an extra routine for sending back sensible errors on Dial failure instead of "General failure". * The code is slightly cleaner (IMO). Gotchas: * If the goptlib pt.Args datatype or external interface changes, args.go will need to be updated. Tested with obfs3 and obfs4, including IPv6.
Showing
- ChangeLog 1 addition, 0 deletionsChangeLog
- common/socks5/args.go 96 additions, 0 deletionscommon/socks5/args.go
- common/socks5/args_test.go 144 additions, 0 deletionscommon/socks5/args_test.go
- common/socks5/rfc1929.go 105 additions, 0 deletionscommon/socks5/rfc1929.go
- common/socks5/socks5.go 358 additions, 0 deletionscommon/socks5/socks5.go
- common/socks5/socks_test.go 412 additions, 0 deletionscommon/socks5/socks_test.go
- obfs4proxy/obfs4proxy.go 26 additions, 25 deletionsobfs4proxy/obfs4proxy.go
Loading
Please register or sign in to comment