ipv4 ip范围默认值修改为0.0.0.0-0.0.0.0

This commit is contained in:
wangxin
2018-07-12 11:19:33 +08:00
parent caac10f967
commit 5ca5f4940b
2 changed files with 3 additions and 3 deletions

View File

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

View File

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