Skip to content

Commit

Permalink
- REALLY do not call getLocalHost()
Browse files Browse the repository at this point in the history
  • Loading branch information
owagner committed Mar 9, 2015
1 parent 7f35d34 commit ef69258
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/tellerulam/hm2mqtt/XMLRPCServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ public static String init() throws IOException
ss.setReuseAddress(true);
ss.bind(null);
new XMLRPCAcceptor().start();
InetAddress addr=InetAddress.getLocalHost();
String localhost=System.getProperty("hm2mqtt.hm.localhost");
if(localhost==null)
localhost=addr.getHostAddress();
localhost=InetAddress.getLocalHost().getHostAddress();
return "binary://"+localhost+":"+ss.getLocalPort();
}

Expand Down

0 comments on commit ef69258

Please sign in to comment.