ipv4 ip范围默认值修改为0.0.0.0-0.0.0.0
This commit is contained in:
@@ -525,8 +525,8 @@ jQuery.validator.addMethod("areaIp",function(value, element) {
|
||||
return true;
|
||||
}
|
||||
}else if(ipPattern==2){
|
||||
if(value=='0.0.0.0-1.1.1.1'){
|
||||
$.validator.messages.areaIp=msg+'0.0.0.0-1.1.1.1';
|
||||
if(value=='0.0.0.0-0.0.0.0'){
|
||||
$.validator.messages.areaIp=msg+'0.0.0.0-0.0.0.0';
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
|
||||
@@ -417,7 +417,7 @@ var switchIpInfo=function(obj){
|
||||
|
||||
var ipV4Default=new Array();
|
||||
ipV4Default[0]="0.0.0.0/32"; //subnet
|
||||
ipV4Default[1]="0.0.0.0-1.1.1.1";//ip_range
|
||||
ipV4Default[1]="0.0.0.0-0.0.0.0";//ip_range
|
||||
ipV4Default[2]="0.0.0.0"; //ip
|
||||
|
||||
var ipV6Default=new Array();
|
||||
|
||||
Reference in New Issue
Block a user