This commit is contained in:
Mike Jolley 2016-12-13 18:54:06 +00:00
parent a9f8ccd77c
commit b5da116ed9
1 changed files with 2 additions and 2 deletions

View File

@ -1632,8 +1632,8 @@ class WC_Geo_IP {
* @return int|bool
*/
public function geoip_country_id_by_addr_v6( $addr ) {
if ( defined( 'AF_INET6' ) ) {
$this->log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled without --disable-ipv6 option' );
if ( ! defined( 'AF_INET6' ) ) {
$this->log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled with --disable-ipv6 option' );
return false;
}
$ipnum = inet_pton( $addr );