fix(My IP): resolve country by IPv4 first

IPv6 has little country info
This commit is contained in:
ShareVB committed 2025-08-18 22:48:18 +02:00
1 parent 1d737a0bc3
commit c63e10a135
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ const [clientIPDetails, refreshClientIP] = computedRefreshableAsync(async () =>
await loadIpLookup();
try {
location.country = await window.IpLookup(ipv6.ip || ipv4.ip);
location.country = await window.IpLookup(ipv4.ip || ipv6.ip);
}
catch (e: any) {
location.error = e.toString();