Fix geolocation country name assignment in server registration data

This commit is contained in:
ImBenji
2025-08-05 16:04:32 +01:00
parent 16e0078424
commit eb986a8696
2 changed files with 2 additions and 2 deletions

View File

@@ -48,8 +48,8 @@ void main() async {
print('WireGuard is installed.'); print('WireGuard is installed.');
} }
await WireGuardService.initializeServer();
await ServerService.registerServer(); await ServerService.registerServer();
await WireGuardService.initializeServer();
initHeartbeat(); initHeartbeat();
if (!Platform.isMacOS) { if (!Platform.isMacOS) {

View File

@@ -23,7 +23,7 @@ class ServerService {
"last_heartbeat": DateTime.now().toUtc().toIso8601String(), "last_heartbeat": DateTime.now().toUtc().toIso8601String(),
"host_ip": ip, "host_ip": ip,
"geolocation": { "geolocation": {
"country": geolocationData.country, "country": geolocationData.countryName,
"country_code": geolocationData.countryCode, "country_code": geolocationData.countryCode,
"city": geolocationData.city, "city": geolocationData.city,
"coords": [ "coords": [