Allow private IP adresses

This commit is contained in:
Miraty 2022-08-07 00:09:56 +02:00
parent a63cf55c72
commit d984dd2f20
1 changed files with 0 additions and 2 deletions

View File

@ -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))