diff --git a/src/main/java/io/scalecube/net/Address.java b/src/main/java/io/scalecube/net/Address.java index 310f899..43f6ec8 100644 --- a/src/main/java/io/scalecube/net/Address.java +++ b/src/main/java/io/scalecube/net/Address.java @@ -19,7 +19,7 @@ public final class Address { Address() {} private Address(String host, int port) { - this.host = convertIfLocalhost(host); + this.host = host; this.port = port; } @@ -86,7 +86,7 @@ public static InetAddress getLocalIpAddress() { * @param host host string * @return local ip address if given host is localhost */ - private static String convertIfLocalhost(String host) { + public static String convertIfLocalhost(String host) { String result; switch (host) { case "localhost":