This is an automated email from the ASF dual-hosted git repository.
zrlw pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new e4c8fe9081 Fix NetUtils: should ignore link-local address (#14793)
e4c8fe9081 is described below
commit e4c8fe9081aa425a542892185deeea62584db031
Author: Cyclinder <[email protected]>
AuthorDate: Tue Jun 24 17:22:41 2025 +0800
Fix NetUtils: should ignore link-local address (#14793)
---
dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 29ec2e4ccf..766a12427b 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
@@ -221,7 +221,7 @@ public final class NetUtils {
}
static boolean isValidV4Address(InetAddress address) {
- if (address == null || address.isLoopbackAddress()) {
+ if (address == null || address.isLoopbackAddress() ||
address.isLinkLocalAddress()) {
return false;
}