From 6312a653518947ae9dea23e62cbbea243537ead8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=9A=93=E5=AE=B8?= Date: Tue, 14 May 2019 19:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=97=B6=E6=BA=90IP/=E7=9B=AE=E7=9A=84IP=E4=B8=BA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E6=97=B6=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/nis/util/excel/thread/CheckIpFormatThread.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/nis/util/excel/thread/CheckIpFormatThread.java b/src/main/java/com/nis/util/excel/thread/CheckIpFormatThread.java index fd6efb7d6..7110005ed 100644 --- a/src/main/java/com/nis/util/excel/thread/CheckIpFormatThread.java +++ b/src/main/java/com/nis/util/excel/thread/CheckIpFormatThread.java @@ -603,11 +603,11 @@ public class CheckIpFormatThread implements Callable{ Matcher ip4Matcher = ip4.matcher(srcIpAddress); Matcher ip6Matcher = ip6.matcher(srcIpAddress); if (ip4Matcher.matches() && srcIpAddress.startsWith("0.0.0.0")) { - errInfo.append(prop.getProperty("client_ip") + errInfo.append(prop.getProperty("client_ip")+" " + String.format(prop.getProperty("can_not_be"), Constants.IPV4_DEFAULT_IP_VALUE) + ";"); } else if (ip6Matcher.matches() && srcIpAddress.startsWith("::")) { - errInfo.append(prop.getProperty("client_ip") + errInfo.append(prop.getProperty("client_ip")+" " + String.format(prop.getProperty("can_not_be"), Constants.IPV6_DEFAULT_IP_VALUE) + ";"); } @@ -631,11 +631,11 @@ public class CheckIpFormatThread implements Callable{ Matcher ip4Matcher = ip4.matcher(destIpAddress); Matcher ip6Matcher = ip6.matcher(destIpAddress); if (ip4Matcher.matches() && destIpAddress.startsWith("0.0.0.0")) { - errInfo.append(prop.getProperty("server_ip") + errInfo.append(prop.getProperty("server_ip")+" " + String.format(prop.getProperty("can_not_be"), Constants.IPV4_DEFAULT_IP_VALUE) + ";"); } else if (ip6Matcher.matches() && destIpAddress.startsWith("::")) { - errInfo.append(prop.getProperty("server_ip") + errInfo.append(prop.getProperty("server_ip")+" " + String.format(prop.getProperty("can_not_be"), Constants.IPV6_DEFAULT_IP_VALUE) + ";"); }