From 5ca5f4940b13ced866fe2b2e41038c4a252ed38e Mon Sep 17 00:00:00 2001 From: wangxin Date: Thu, 12 Jul 2018 11:19:33 +0800 Subject: [PATCH] =?UTF-8?q?ipv4=20ip=E8=8C=83=E5=9B=B4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E4=BF=AE=E6=94=B9=E4=B8=BA0.0.0.0-0.0.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jquery-validation/1.11.0/jquery.validate.method.js | 4 ++-- src/main/webapp/static/global/scripts/common.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js index 55c64aa3b..698450939 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js @@ -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; diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index a0f73a832..92a4ef90c 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -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();