Skip to content

Commit

Permalink
Removed convertIfLocal form Address constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Apr 13, 2021
1 parent fe54f0e commit cc2ecae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/scalecube/net/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit cc2ecae

Please sign in to comment.