Skip to content

Commit

Permalink
fix: allocate memory for geoip struct of new server instance (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Dec 2, 2024
1 parent b128a0a commit 085fd4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/singleton/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 085fd4a

Please sign in to comment.