mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 09:12: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
+5
-1
@@ -205,5 +205,9 @@ func run() {
|
||||
crypt.InitTls()
|
||||
tool.InitAllowPort()
|
||||
tool.StartSystemInfo()
|
||||
go server.StartNewServer(bridgePort, task, beego.AppConfig.String("bridge_type"))
|
||||
timeout, err := beego.AppConfig.Int("disconnect_timeout")
|
||||
if err != nil {
|
||||
timeout = 60
|
||||
}
|
||||
go server.StartNewServer(bridgePort, task, beego.AppConfig.String("bridge_type"), timeout)
|
||||
}
|
||||
Reference in new issue
Block a user