Fix geolocation country name assignment in server registration data
This commit is contained in:
@@ -48,8 +48,8 @@ void main() async {
|
||||
print('WireGuard is installed.');
|
||||
}
|
||||
|
||||
await WireGuardService.initializeServer();
|
||||
await ServerService.registerServer();
|
||||
await WireGuardService.initializeServer();
|
||||
initHeartbeat();
|
||||
|
||||
if (!Platform.isMacOS) {
|
||||
|
||||
@@ -23,7 +23,7 @@ class ServerService {
|
||||
"last_heartbeat": DateTime.now().toUtc().toIso8601String(),
|
||||
"host_ip": ip,
|
||||
"geolocation": {
|
||||
"country": geolocationData.country,
|
||||
"country": geolocationData.countryName,
|
||||
"country_code": geolocationData.countryCode,
|
||||
"city": geolocationData.city,
|
||||
"coords": [
|
||||
|
||||
Reference in New Issue
Block a user