From d3bfa0cac109d2c07731e9a45393b08859a80e12 Mon Sep 17 00:00:00 2001 From: qi_liang Date: Sat, 29 Feb 2020 22:54:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=9C=AC=E6=9C=BAIP=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/web/IndexController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/lq/cms/web/IndexController.java b/src/main/java/com/lq/cms/web/IndexController.java index 9af6c0a..57e777b 100755 --- a/src/main/java/com/lq/cms/web/IndexController.java +++ b/src/main/java/com/lq/cms/web/IndexController.java @@ -72,7 +72,7 @@ public class IndexController { context.getServerInfo(); DbInfo dbInfo = JdbcUtils.getDBInfo(); OsInfo osInfo = OsUtil.getInfo(); - String serverIp = NetUtil.getIP(); + String serverIp = NetUtil.getLocalIpAddr(); JvmInfo jvmInfo = JvmUtil.getInfo(); vo.setDbInfo(dbInfo); vo.setUserIP(userIp); From abc67a3fca946af15f6697c87b8ac2cb0fa46801 Mon Sep 17 00:00:00 2001 From: qi_liang Date: Sat, 29 Feb 2020 22:55:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 163606c..58eb1e8 100644 --- a/pom.xml +++ b/pom.xml @@ -684,4 +684,5 @@ +