Start link clean

This commit is contained in:
刘河
2019-02-25 14:39:48 +08:00
parent 2c13a02bdc
commit 0711b9befb
2 changed files with 2 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ func NewTunnel(tunnelPort int, tunnelType string, ipVerify bool, runList map[int
}
func (s *Bridge) StartTunnel() error {
go s.linkCleanSession()
var err error
if s.tunnelType == "kcp" {
s.kcpListener, err = kcp.ListenWithOptions(":"+strconv.Itoa(s.TunnelPort), nil, 150, 3)