summaryrefslogtreecommitdiff
path: root/common/csrand
diff options
context:
space:
mode:
authorYawning Angel <yawning@torproject.org>2015-04-12 19:00:46 +0000
committerYawning Angel <yawning@torproject.org>2015-04-15 20:50:01 +0000
commita8d7134f1097bd50803da0e2a86c07524e433b51 (patch)
tree346403d6ecfdf2a76d8e736862c1b42d165cc919 /common/csrand
parent8996cb2646f2721b2d86f5f6b54b5c21d2acc71d (diff)
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.
Diffstat (limited to 'common/csrand')
0 files changed, 0 insertions, 0 deletions