5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-14 04:30:32 +00:00

don't SetKeepAlive[Period] on tcp connections, since the behavior is platform specific

This commit is contained in:
Arceliar 2018-12-16 18:32:50 -06:00
parent 1a1e0553aa
commit 300f471bab

View File

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