mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-24 05:02:14 +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)
|
|
}
|