Allow private IP adresses
This commit is contained in:
parent
a63cf55c72
commit
d984dd2f20
1 changed files with 0 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue