transocks
transocks copied to clipboard
Use TCPConn.SyscallConn to control underlying FD
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+.