From a8092ace325bb2a4a5af044720834c8611eaa1bc Mon Sep 17 00:00:00 2001 From: sxq <812980466@qq.com> Date: 星期三, 20 十月 2021 11:58:14 +0800 Subject: [PATCH] 初始化配置文件。 --- ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java index 03c608a..bd7522c 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java @@ -27,6 +27,9 @@ 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)) { -- Gitblit v1.9.3