cybozu-go / transocks

Transparent SOCKS5 / HTTP proxy in Go
MIT License
467 stars 61 forks source link

Use TCPConn.SyscallConn to control underlying FD #4

Open ymmt2005 opened 6 years ago

ymmt2005 commented 6 years ago

Go 1.9 adds TCPConn.SyscallConn to make it possible to invoke arbitrary syscalls on the underlying file descriptor.

We should replace the current hack with this, at least for Go 1.9+.