Merge pull request #256 from Arceliar/tcp

Minor TCP change
This commit is contained in:
Neil Alexander 2018-12-17 10:20:23 +00:00 committed by GitHub
commit 6e87791e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,8 +59,6 @@ func (iface *tcpInterface) setExtraOptions(c net.Conn) {
switch sock := c.(type) {
case *net.TCPConn:
sock.SetNoDelay(true)
sock.SetKeepAlive(true)
sock.SetKeepAlivePeriod(iface.tcp_timeout)
// TODO something for socks5
default:
}