You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ki...@apache.org on 2019/11/08 05:21:37 UTC
[dubbo] branch master updated: fix NetUtils.isPreferIPV6Address bug
(#5238)
This is an automated email from the ASF dual-hosted git repository.
kirito pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new dfa8499 fix NetUtils.isPreferIPV6Address bug (#5238)
dfa8499 is described below
commit dfa84998968f7f9bfc25b935b531fcf8c67fe854
Author: Tyrael <wa...@gmail.com>
AuthorDate: Fri Nov 8 13:20:57 2019 +0800
fix NetUtils.isPreferIPV6Address bug (#5238)
---
.../src/main/java/org/apache/dubbo/common/utils/NetUtils.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java
index 6637f0c..0285a4a 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java
@@ -145,11 +145,7 @@ public class NetUtils {
* @return true if it is reachable
*/
static boolean isPreferIPV6Address() {
- boolean preferIpv6 = Boolean.getBoolean("java.net.preferIPv6Addresses");
- if (!preferIpv6) {
- return false;
- }
- return false;
+ return Boolean.getBoolean("java.net.preferIPv6Addresses");
}
/**