mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
11 lines
162 B
Go
11 lines
162 B
Go
//go:build !go1.23
|
|
|
|
package net
|
|
|
|
import "net"
|
|
|
|
func tcpKeepAlive(tcp *net.TCPConn) {
|
|
_ = tcp.SetKeepAlive(true)
|
|
_ = tcp.SetKeepAlivePeriod(KeepAliveInterval)
|
|
}
|