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);