You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/09/07 02:48:51 UTC
[GitHub] [iotdb] Beyyes commented on a diff in pull request #7254: [IOTDB-4223] Maintain default node ip config
Beyyes commented on code in PR #7254:
URL: https://github.com/apache/iotdb/pull/7254#discussion_r964332193
##########
node-commons/src/main/java/org/apache/iotdb/commons/utils/NodeUrlUtils.java:
##########
@@ -187,4 +187,11 @@ public static List<TConfigNodeLocation> parseTConfigNodeUrls(String configNodeUr
throws BadNodeUrlException {
return parseTConfigNodeUrls(Arrays.asList(configNodeUrls.split(";")));
}
+
+ public static boolean isLocalAddress(String ip) {
+ if (ip == null) {
+ return false;
+ }
+ return ip.equals("0.0.0.0") || ip.equals("127.0.0.1") || ip.equals("localhost");
Review Comment:
`0.0.0.0`, `127.0.0.1`, `localhost` can be set to static final variables
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org