carterkozak commented on a change in pull request #608:
URL: https://github.com/apache/logging-log4j2/pull/608#discussion_r759126375
##########
File path:
log4j-core/src/main/java/org/apache/logging/log4j/core/util/NetUtils.java
##########
@@ -79,6 +84,45 @@ public static String getLocalHostname() {
}
}
+ public static List<String> getLocalIps() {
+ List<String> localIps = new ArrayList<>();
+ localIps.add("localhost");
+ localIps.add("127.0.0.1");
Review comment:
Perhaps IPv6 as well `[::1]`? (brackets may or may not be necessary
depending how we extract the host)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]