Skip to content

Commit

Permalink
fix-4787 (alibaba#4802)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeRan213539 committed Jan 28, 2021
1 parent 2db2a85 commit 0881af3
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ public static String[] splitIPPortStr(String str) {
throw new IllegalArgumentException("The IP address(\"" + str
+ "\") is incorrect. If it is an IPv6 address, please use [] to enclose the IP part!");
}
if (!isIPv4(serverAddrArr[0])) {
throw new IllegalArgumentException("The IPv4 address(\"" + serverAddrArr[0] + "\") is incorrect.");
}
}
return serverAddrArr;
}
Expand All @@ -174,9 +171,6 @@ public static String getIPFromString(String str) {
Matcher m = ipv4Pattern.matcher(str);
if (m.find()) {
result = m.group();
if (!isIPv4(result)) {
result = "";
}
}
}
return result;
Expand Down

0 comments on commit 0881af3

Please sign in to comment.