fix: allocate geoip on server creation (#554)

This commit is contained in:
UUBulb 2024-12-05 17:07:31 +08:00 committed by GitHub
parent 3fb49693d9
commit 2234cff5eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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