fix: allocate memory for geoip struct of new server instance (#530)

This commit is contained in:
UUBulb
2024-12-02 20:52:10 +08:00
committed by GitHub
parent 8f173f70cb
commit 65340c10ce
+1
View File
@@ -31,6 +31,7 @@ func loadServers() {
innerS := s
innerS.Host = &model.Host{}
innerS.State = &model.HostState{}
innerS.GeoIP = new(model.GeoIP)
innerS.TaskCloseLock = new(sync.Mutex)
ServerList[innerS.ID] = &innerS
ServerUUIDToID[innerS.UUID] = innerS.ID