浏览代码

Allow private IP adresses

Miraty 2 年之前
父节点
当前提交
d984dd2f20
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      fn/dns.php

+ 0 - 2
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))