From 2234cff5eb6486ea375b40382454a5fdbaba33db Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:07:31 +0800 Subject: [PATCH] fix: allocate geoip on server creation (#554) --- service/rpc/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/rpc/auth.go b/service/rpc/auth.go index 6f0dda0d24..1709168eb8 100644 --- a/service/rpc/auth.go +++ b/service/rpc/auth.go @@ -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