From e64b6f5f56cc405cb35702982ddc8b9d68a03d18 Mon Sep 17 00:00:00 2001 From: Miraty Date: Thu, 11 Aug 2022 16:36:54 +0200 Subject: [PATCH] Allow reserved IP adresses --- fn/dns.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/fn/dns.php b/fn/dns.php index 5fe839f..b0deb2c 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_RES_RANGE)) - userError("IP address is on the reserved range."); if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) return "A"; if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))