Disallow empty AdminUID

This commit is contained in:
Qian Wang 2018-12-03 20:44:08 +00:00
parent 2688e30907
commit 4474a74f02
1 changed files with 4 additions and 0 deletions

View File

@ -229,6 +229,10 @@ func main() {
log.Fatalf("Configuration file error: %v", err)
}
if sta.AdminUID == nil {
log.Fatalln("AdminUID cannot be empty!")
}
go sta.UsedRandomCleaner()
listen := func(addr, port string) {