diff --git a/lib/tun2/server.go b/lib/tun2/server.go index a43ca63..f8f8cae 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -79,6 +79,9 @@ func NewServer(cfg *ServerConfig) (*Server, error) { cfg.SmuxConf = smux.DefaultConfig() } + cfg.SmuxConf.KeepAliveInterval = time.Second + cfg.SmuxConf.KeepAliveTimeout = 15 * time.Second + server := &Server{ cfg: cfg,