Skip to content

Commit

Permalink
fix: allocate geoip on server creation (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Dec 5, 2024
1 parent 3fb4969 commit 2234cff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/rpc/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (a *authHandler) Check(ctx context.Context) (uint64, error) {
}
s.Host = &model.Host{}
s.State = &model.HostState{}
s.GeoIP = &model.GeoIP{}
// generate a random silly server name
singleton.ServerList[s.ID] = &s
singleton.ServerUUIDToID[clientUUID] = s.ID
Expand Down

0 comments on commit 2234cff

Please sign in to comment.