Commit df5ca878 authored by 赵啸非's avatar 赵啸非

添加门户license验证

parent e5cddfb2
...@@ -65,7 +65,7 @@ public class CipherUtil { ...@@ -65,7 +65,7 @@ public class CipherUtil {
public static String getMacAndIpInfo() { public static String getMacAndIpInfo() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
try { try {
String macAddress = NetUtil.getMacAddress(InetAddress.getLocalHost()); String macAddress = NetUtil.getLocalMacAddress();
InetAddress localHost = InetAddress.getLocalHost(); InetAddress localHost = InetAddress.getLocalHost();
sb.append("mac=").append(macAddress).append("&ip=").append(localHost.getHostAddress()); sb.append("mac=").append(macAddress).append("&ip=").append(localHost.getHostAddress());
log.info("macAddress:{} IP:{},HostName:{}", macAddress, localHost.getHostAddress(), localHost.getHostName()); log.info("macAddress:{} IP:{},HostName:{}", macAddress, localHost.getHostAddress(), localHost.getHostName());
......
...@@ -48,5 +48,5 @@ sys: ...@@ -48,5 +48,5 @@ sys:
pub: /home/license/license.pub pub: /home/license/license.pub
log: /home/license log: /home/license
license: license:
enable: true enable: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment