mirror of
https://github.com/fatedier/frp.git
synced 2025-07-21 13:19:42 +07:00
support tcp keepalive params (#2863)
This commit is contained in:
@ -186,6 +186,7 @@ func NewService(cfg config.ServerCommonConf) (svr *Service, err error) {
|
||||
}
|
||||
|
||||
svr.muxer = mux.NewMux(ln)
|
||||
svr.muxer.SetKeepAlive(time.Duration(cfg.TCPKeepAlive) * time.Second)
|
||||
go svr.muxer.Serve()
|
||||
ln = svr.muxer.DefaultListener()
|
||||
|
||||
|
Reference in New Issue
Block a user