mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 13:10:42 +00:00
Update bridge.go
This commit is contained in:
parent
f7898e019e
commit
aa5b869da9
@ -71,7 +71,6 @@ func NewTunnel(tunnelPort int, tunnelType string, ipVerify bool, runList map[int
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Bridge) StartTunnel() error {
|
func (s *Bridge) StartTunnel() error {
|
||||||
go s.linkCleanSession()
|
|
||||||
var err error
|
var err error
|
||||||
if s.tunnelType == "kcp" {
|
if s.tunnelType == "kcp" {
|
||||||
s.kcpListener, err = kcp.ListenWithOptions(":"+strconv.Itoa(s.TunnelPort), nil, 150, 3)
|
s.kcpListener, err = kcp.ListenWithOptions(":"+strconv.Itoa(s.TunnelPort), nil, 150, 3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user