amend previous to 127/8 subnet
This commit is contained in:
parent
213d6330b1
commit
6a4b6cf603
|
@ -245,7 +245,7 @@
|
||||||
$url_host = parse_url($url, PHP_URL_HOST);
|
$url_host = parse_url($url, PHP_URL_HOST);
|
||||||
$ip_addr = gethostbyname($url_host);
|
$ip_addr = gethostbyname($url_host);
|
||||||
|
|
||||||
if (!$ip_addr || strpos($ip_addr, "127.0") === 0) {
|
if (!$ip_addr || strpos($ip_addr, "127.") === 0) {
|
||||||
$fetch_last_error = "URL hostname failed to resolve or resolved to loopback address ($ip_addr)";
|
$fetch_last_error = "URL hostname failed to resolve or resolved to loopback address ($ip_addr)";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue