Skip to content

Commit

Permalink
SetKeepAlive in mixed and mtproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Mar 16, 2021
1 parent 8be00e8 commit d80e67a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions proxy/mixed/mixec.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func NewMixECProxy(addr string) (*MixECListener, error) {
}
continue
}
_ = c.(*net.TCPConn).SetKeepAlive(true)
go handleECConn(c, ml.ch)
}
}()
Expand Down
1 change: 1 addition & 0 deletions proxy/mixed/mixed.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewMixedProxy(addr string) (*MixedListener, error) {
}
continue
}
_ = c.(*net.TCPConn).SetKeepAlive(true)
go handleConn(c, ml.cache)
}
}()
Expand Down
1 change: 1 addition & 0 deletions proxy/mtproxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func NewMTProxy(config string) (*MTProxyListener, error) {
}
continue
}
_ = c.(*net.TCPConn).SetKeepAlive(true)
go hl.HandleConn(c)
}
}()
Expand Down

0 comments on commit d80e67a

Please sign in to comment.