mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 12:27:36 +03:00
Fix tcp keep alive
This commit is contained in:
parent
0eed0ca11a
commit
d06fd03dd8
4 changed files with 3 additions and 15 deletions
|
@ -154,8 +154,6 @@ func (a *myInboundAdapter) loopTCPIn() {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
conn.SetKeepAlive(true)
|
||||
conn.SetKeepAlivePeriod(C.TCPKeepAlivePeriod)
|
||||
go func() {
|
||||
ctx := log.ContextWithNewID(a.ctx)
|
||||
var metadata adapter.InboundContext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue