mirror of
https://github.com/ehang-io/nps.git
synced 2026-10-31 16:52:12 +08:00
add custom client disconnect timeout option, close #485
This commit is contained in:
1 parent
6f1b32a152
commit
f459acdfb4
15 files changed
+89
-60
No files matched your search
+2
-2
@@ -85,8 +85,8 @@ func DealBridgeTask() {
|
||||
}
|
||||
|
||||
//start a new server
|
||||
func StartNewServer(bridgePort int, cnf *file.Tunnel, bridgeType string) {
|
||||
Bridge = bridge.NewTunnel(bridgePort, bridgeType, common.GetBoolByStr(beego.AppConfig.String("ip_limit")), RunList)
|
||||
func StartNewServer(bridgePort int, cnf *file.Tunnel, bridgeType string, bridgeDisconnect int) {
|
||||
Bridge = bridge.NewTunnel(bridgePort, bridgeType, common.GetBoolByStr(beego.AppConfig.String("ip_limit")), RunList, bridgeDisconnect)
|
||||
go func() {
|
||||
if err := Bridge.StartTunnel(); err != nil {
|
||||
logs.Error("start server bridge error", err)
|
||||
|
||||
Reference in new issue
Block a user