zrlw commented on issue #8676:
URL: https://github.com/apache/dubbo/issues/8676#issuecomment-1018079832


   
修改后的NetUtils.java的findNetworkInterface返回的是第一个可用的网卡,也就是权重最高的网卡,只是你们恰好是本地虚拟网桥段地址,之前的代码忘了break循环,所以取了最后一个可用的网卡,在虚拟机等大多数环境下最后一个网卡权重最小,使用出问题的概率最大,这个问题没有办法兼顾,否则也不会搞个-DDUBBO_IP_TO_BIND启动参数指定ip地址了,我个人认为获取本地地址还是取权重最大的网卡较为合适,只是你们的情况比较特殊,恰好要使用权重最小的网卡。


-- 
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]

Reply via email to