rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinrongt...@apache.org
Subject [rocketmq] 13/22: fix(util) make ipv4 first when choosing local IP
Date Mon, 20 Jan 2020 13:25:46 GMT
This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch test-release
in repository https://gitbox.apache.org/repos/asf/rocketmq.git

commit 25eb5ae0e1760ca4efade5e3f930f2bbb995ed83
Author: duhenglucky <duhengforever@apache.org>
AuthorDate: Fri Nov 29 00:01:35 2019 +0800

    fix(util) make ipv4 first when choosing local IP
---
 common/src/main/java/org/apache/rocketmq/common/UtilAll.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/src/main/java/org/apache/rocketmq/common/UtilAll.java b/common/src/main/java/org/apache/rocketmq/common/UtilAll.java
index 624199c..2aab5b7 100644
--- a/common/src/main/java/org/apache/rocketmq/common/UtilAll.java
+++ b/common/src/main/java/org/apache/rocketmq/common/UtilAll.java
@@ -547,8 +547,6 @@ public class UtilAll {
                             if (ipV6Check(ipByte)) {
                                 if (!isInternalV6IP(ip)) {
                                     return ipByte;
-                                } else if (internalIP == null) {
-                                    internalIP = ipByte;
                                 }
                             }
                         }


Mime
View raw message