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) + ";"); }