|
@@ -22,7 +22,7 @@ public class IpUtil {
|
|
|
}
|
|
|
String s = ss1[3];
|
|
|
if (s.indexOf("-") != -1) {
|
|
|
- String[] ss2 = ip.split("-");
|
|
|
+ String[] ss2 = s.split("-");
|
|
|
if (ss2.length != 2) {
|
|
|
throw new StatusException("ip段格式错误");
|
|
|
}
|
|
@@ -52,4 +52,6 @@ public class IpUtil {
|
|
|
throw new StatusException("ip只能是整数");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|