update 优化空校验处理

This commit is contained in:
疯狂的狮子li
2021-09-24 11:17:25 +08:00
parent 77bce8b1e8
commit 6f870e11ff
2 changed files with 11 additions and 4 deletions

View File

@ -27,6 +27,9 @@ public class AddressUtils {
public static String getRealAddressByIP(String ip) {
String address = UNKNOWN;
if (StringUtils.isBlank(ip)){
return address;
}
// 内网不查询
ip = "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : HtmlUtil.cleanHtmlTag(ip);
if (NetUtil.isInnerIP(ip)) {