xwm1992 commented on code in PR #4655:
URL: https://github.com/apache/eventmesh/pull/4655#discussion_r1427971489
##########
eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java:
##########
@@ -76,7 +81,7 @@ public static String getLocalAddress() {
ArrayList<String> ipv4Result = new ArrayList<String>();
ArrayList<String> ipv6Result = new ArrayList<String>();
- if (preferNetworkInterface != null) {
+ if (preferNetworkInterface != null && matchName) {
Review Comment:
I think this problem is because of the ipv6 config for jvm, you can
configure the example jvm params with the ipv4 first.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]