Allow reserved IP adresses
This commit is contained in:
parent
d984dd2f20
commit
e64b6f5f56
1 changed files with 0 additions and 2 deletions
|
@ -41,8 +41,6 @@ function knotcZoneExec($zone, $cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkIpFormat($ip) {
|
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))
|
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
|
||||||
return "A";
|
return "A";
|
||||||
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||||
|
|
Loading…
Reference in a new issue