feat: support StopOldInstance()

This commit is contained in:
hsluoyz
2025-01-07 21:39:21 +08:00
parent 1813e8e8c7
commit 56d0de64dc
2 changed files with 102 additions and 0 deletions

View File

@ -83,6 +83,11 @@ func main() {
// logs.SetLevel(logs.LevelInformational)
logs.SetLogFuncCall(false)
err = util.StopOldInstance(port)
if err != nil {
panic(err)
}
go ldap.StartLdapServer()
go radius.StartRadiusServer()
go object.ClearThroughputPerSecond()