mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-04 21:56:53 +00:00
add custom client disconnect timeout option, close #485
This commit is contained in:
@@ -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