修改获取本机IP方式

master
星期八 5 years ago
parent 833e018b70
commit d3bfa0cac1
  1. 2
      src/main/java/com/lq/cms/web/IndexController.java

@ -72,7 +72,7 @@ public class IndexController {
context.getServerInfo(); context.getServerInfo();
DbInfo dbInfo = JdbcUtils.getDBInfo(); DbInfo dbInfo = JdbcUtils.getDBInfo();
OsInfo osInfo = OsUtil.getInfo(); OsInfo osInfo = OsUtil.getInfo();
String serverIp = NetUtil.getIP(); String serverIp = NetUtil.getLocalIpAddr();
JvmInfo jvmInfo = JvmUtil.getInfo(); JvmInfo jvmInfo = JvmUtil.getInfo();
vo.setDbInfo(dbInfo); vo.setDbInfo(dbInfo);
vo.setUserIP(userIp); vo.setUserIP(userIp);

Loading…
Cancel
Save