always return something...

This commit is contained in:
2026-03-07 01:08:26 +01:00
parent 9db73ee29c
commit a755d3f1c2
+4 -1
View File
@@ -32,7 +32,7 @@ export const GeoService = {
return data; return data;
} catch (error) { } catch (error) {
console.warn('Geo lookup failed for', ip, error); console.warn('Geo lookup failed for', ip, error);
return { const failedData: GeoData = {
ip, ip,
hostname: null, hostname: null,
countryCode: null, countryCode: null,
@@ -45,6 +45,9 @@ export const GeoService = {
isLocal: false, isLocal: false,
isBogon: false isBogon: false
}; };
await StorageService.setGeoCache(ip, failedData);
return failedData;
} }
}, },