mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-09 23:20:26 +03:00
don't SetKeepAlive[Period] on tcp connections, since the behavior is platform specific
This commit is contained in:
parent
1a1e0553aa
commit
300f471bab
@ -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:
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user