sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.81k stars 1.17k forks source link

服务器存在多个IP的情况下,可以指定IP向注册中心注册码? #114

Closed jewin closed 6 years ago

leizhiyuan commented 6 years ago

对 ServerConfig 进行 sethost 即可,这个会作为最终想注册中心注册的 ip

ujjboy commented 6 years ago

@jewin
除了上面指定地址的普通场景下,如果还有如下需求:

jewin commented 6 years ago

不能在xml里指定吗

leizhiyuan commented 6 years ago

starter 场景下的使用,暂时没有做转换.

https://github.com/alipay/sofa-rpc-boot-projects/issues/42

issue 见这里.下周会支持.

jewin commented 6 years ago

期待新版本。 目前在启动参数中手工设置SystemInfo.setLocalHost("127.0.0.1"); 强制指定ip,临时解决该问题。