1
0
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:
Andrew Dolgov
2020-09-17 07:37:48 +03:00
parent 213d6330b1
commit 6a4b6cf603

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;
}