mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-02 18:00:51 +08:00
Start link clean
This commit is contained in:
1 parent
2c13a02bdc
commit
0711b9befb
2 files changed
+2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user