소스 검색

update message-service

reghao 2 달 전
부모
커밋
0824093fc4
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      message/message-service/src/main/java/cn/reghao/tnb/message/app/config/SpringLifecycle.java

+ 4 - 4
message/message-service/src/main/java/cn/reghao/tnb/message/app/config/SpringLifecycle.java

@@ -65,10 +65,10 @@ public class SpringLifecycle implements ApplicationRunner, DisposableBean {
                 Enumeration<InetAddress> inetAddrs = iface.getInetAddresses();
                 while (inetAddrs.hasMoreElements()) {
                     InetAddress address = inetAddrs.nextElement();
-                    if (!address.isLoopbackAddress()) {
-                        if (address instanceof Inet4Address) {
-                            ipv4AddressSet.add(address.getHostAddress());
-                        }
+                    /*if (!address.isLoopbackAddress()) {
+                    }*/
+                    if (address instanceof Inet4Address) {
+                        ipv4AddressSet.add(address.getHostAddress());
                     }
                 }
             }