amend previous to 127/8 subnet

This commit is contained in:
Andrew Dolgov 2020-09-17 07:37:48 +03:00
parent 213d6330b1
commit 6a4b6cf603
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@
$url_host = parse_url($url, PHP_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)";
return false;
}