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;
} catch (error) {
console.warn('Geo lookup failed for', ip, error);
return {
const failedData: GeoData = {
ip,
hostname: null,
countryCode: null,
@@ -45,6 +45,9 @@ export const GeoService = {
isLocal: false,
isBogon: false
};
await StorageService.setGeoCache(ip, failedData);
return failedData;
}
},