You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/12/16 08:16:40 UTC

[GitHub] [dubbo] robberphex commented on issue #11141: DUBBO_IP_TO_REGISTRY怎么动态指定

robberphex commented on issue #11141:
URL: https://github.com/apache/dubbo/issues/11141#issuecomment-1354367539

   可以在容器的启动参数里添加DUBBO_IP_TO_REGISTRY=物理机ip。
   
   个人觉得DUBBO_IP_TO_REGISTRY用处其实很有限。
   我们应该搞一个黑名单(10.0.0.0/8)和白名单(比如业务网段)。然后遍历所有网卡,找到在白名单中的地址(或者不在黑名单中的地址),注册就可以。
   
   好处就是,这个环境变量会更加通用些,要不然每个机器环境变量的获取,还是比较麻烦的。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org