From d984dd2f20ef0beb174560991f7e510e0fe9725c Mon Sep 17 00:00:00 2001 From: Miraty Date: Sun, 7 Aug 2022 00:09:56 +0200 Subject: [PATCH] Allow private IP adresses --- fn/dns.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/fn/dns.php b/fn/dns.php index 108d9e0..5fe839f 100644 --- a/fn/dns.php +++ b/fn/dns.php @@ -41,8 +41,6 @@ function knotcZoneExec($zone, $cmd) { } function checkIpFormat($ip) { - if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE)) - userError("IP address is on the private range."); if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE)) userError("IP address is on the reserved range."); if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))