mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:05:56 +00:00
amend previous to 127/8 subnet
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user