You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/03/15 15:12:07 UTC

[GitHub] [geode] albertogpz commented on a change in pull request #6116: GEODE-8877: Configurable UDP membership address

albertogpz commented on a change in pull request #6116:
URL: https://github.com/apache/geode/pull/6116#discussion_r594421863



##########
File path: geode-common/src/main/java/org/apache/geode/internal/inet/LocalHostUtil.java
##########
@@ -242,6 +242,10 @@ public static InetAddress getAnyLocalAddress() {
     return new InetSocketAddress(0).getAddress();
   }
 
+  public static boolean isWildcardAddress(String address) {
+    return (address != null && (address.equals("0.0.0.0") || address.equals("::")));

Review comment:
       How about simplifying this as follows?:
   return "0.0.0.0".equals(address) || "::".equals(address);




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org