summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-17 07:37:48 +0300
committerAndrew Dolgov <[email protected]>2020-09-17 07:37:48 +0300
commit6a4b6cf603002ca0032c209b99da4ab76ac7e013 (patch)
tree3ca2c8ac1da684aa2ff9cf298148a8ef88f4ba97 /include
parent213d6330b1e3d26467647cc95d8a4f478b1ec796 (diff)
amend previous to 127/8 subnet
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 4ef734218..dfaf1895d 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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;
}