Skip to content

Commit

Permalink
fix: Use default localhost finder for MacOs
Browse files Browse the repository at this point in the history
  • Loading branch information
grzi committed Oct 1, 2021
1 parent 214ec05 commit d809e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquibase-core/src/main/java/liquibase/util/NetUtil.java
Expand Up @@ -19,7 +19,7 @@ private static InetAddress getLocalHost() throws UnknownHostException, SocketExc
// That is why windows should be treated differently to linux/unix and use the
// default way of getting the localhost.
String osName = System.getProperty("os.name");
if ((osName != null) && osName.toLowerCase().contains("windows")) {
if ((osName != null) && (osName.toLowerCase().contains("windows") ||osName.toLowerCase().contains("mac"))) {
return InetAddress.getLocalHost();
}

Expand Down

0 comments on commit d809e2d

Please sign in to comment.