You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/04/29 05:44:42 UTC
[GitHub] [rocketmq] vongosling commented on a change in pull request #1177:
[ISSUE #1057]Filter out docker0 when finding a local address
vongosling commented on a change in pull request #1177: [ISSUE #1057]Filter out docker0 when finding a local address
URL: https://github.com/apache/rocketmq/pull/1177#discussion_r279241053
##########
File path: remoting/src/main/java/org/apache/rocketmq/remoting/common/RemotingUtil.java
##########
@@ -99,6 +99,10 @@ public static String getLocalAddress() {
ArrayList<String> ipv6Result = new ArrayList<String>();
while (enumeration.hasMoreElements()) {
final NetworkInterface networkInterface = enumeration.nextElement();
+ if ("docker0".equals(networkInterface.getName())) {
Review comment:
docker1 could also exist? docker bridge is a configuration option in docker architecture. could we have a common way to sweep out these ips?
----------------------------------------------------------------
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
With regards,
Apache Git Services