http://api.ipify.org/ doesn't support ipv6 #47566
Labels
focus: settings
Issues related to managing settings.
priority: normal
The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc.
team: Proton
type: community contribution
Prerequisites
Describe the bug
In
WC_Geolocation::$ip_lookup_apis
, various APIs are appointed to obtain the host's IP address. Unlike all other IPs, ipify doesn't support IPv6, which may cause a headache when debugging lookups.This is likely inconsequential, but it may also trickle down into executing multiplicable geolocation lookups via
WC_Geolocation::geolocate_ip()
.Expected behavior
Consistent IPv6 and IPv4 support across the board.
Actual behavior
Inconsistent IPv6 and IPv4 support.
Steps to reproduce
Run this on a server with mixed IPv6 and IPv4 support. It will crash if the site is unreachable, but eh... it's for testing purposes.
WordPress Environment
N/A
Isolating the problem
The text was updated successfully, but these errors were encountered: