mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-21 02:36:40 +08:00
update 优化 AddressUtils 兼容linux系统本地ip
This commit is contained in:
parent
86223d5a6b
commit
c7e79d2681
@ -24,7 +24,7 @@ public class AddressUtils {
|
||||
return UNKNOWN;
|
||||
}
|
||||
// 内网不查询
|
||||
ip = "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : HtmlUtil.cleanHtmlTag(ip);
|
||||
ip = StringUtils.contains(ip, "0:0:0:0:0:0:0:1") ? "127.0.0.1" : HtmlUtil.cleanHtmlTag(ip);
|
||||
if (NetUtil.isInnerIP(ip)) {
|
||||
return "内网IP";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user