File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
apollo-core/src/main/java/com/ctrip/framework/foundation/internals
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 77import java .net .UnknownHostException ;
88import java .util .ArrayList ;
99import java .util .Collections ;
10+ import java .util .Enumeration ;
1011import java .util .List ;
1112import java .util .Objects ;
1213
@@ -96,7 +97,9 @@ private void load() {
9697 }
9798
9899 try {
99- List <NetworkInterface > nis = Collections .list (NetworkInterface .getNetworkInterfaces ());
100+ Enumeration <NetworkInterface > interfaces = NetworkInterface .getNetworkInterfaces ();
101+ List <NetworkInterface > nis = interfaces == null ? Collections .<NetworkInterface >emptyList ()
102+ : Collections .list (NetworkInterface .getNetworkInterfaces ());
100103 List <InetAddress > addresses = new ArrayList <InetAddress >();
101104 InetAddress local = null ;
102105
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public ServletContextInitializer servletContextInitializer() {
3333 @ Override
3434 public void onStartup (ServletContext servletContext ) throws ServletException {
3535 String loggingServerIP = portalConfig .cloggingUrl ();
36- String loggingServerPort = portalConfig .cloggingUrl ();
36+ String loggingServerPort = portalConfig .cloggingPort ();
3737 String credisServiceUrl = portalConfig .credisServiceUrl ();
3838
3939 servletContext .setInitParameter ("loggingServerIP" ,
You can’t perform that action at this time.
0 commit comments