From cc2ecaea383995401174a39bf8f76395923e8da4 Mon Sep 17 00:00:00 2001 From: Artem Vysochyn Date: Tue, 13 Apr 2021 16:50:06 +0300 Subject: [PATCH] Removed convertIfLocal form Address constructor --- src/main/java/io/scalecube/net/Address.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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":