Pre Merge pull request !255 from 梁剑锋/dev

This commit is contained in:
梁剑锋 2022-11-21 07:44:04 +00:00 committed by Gitee
commit de48b010a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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