Add country information to geolocation data in server registration

This commit is contained in:
ImBenji
2025-08-05 15:56:56 +01:00
parent d726e4fa0d
commit 21c4ef33da

View File

@@ -23,6 +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_code": geolocationData.countryCode, "country_code": geolocationData.countryCode,
"city": geolocationData.city, "city": geolocationData.city,
"coords": [ "coords": [