mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix(My IP): resolve country by IPv4 first
IPv6 has little country info
This commit is contained in:
1 parent
1d737a0bc3
commit
c63e10a135
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user