Alloyee edited a comment on issue #9617:
URL: https://github.com/apache/dubbo/issues/9617#issuecomment-1059078464
一样的问题,目前通过扩展一个Registory和RegistoryFactory来解决的
`public class Nacos2Registry extends NacosRegistry {
public Nacos2Registry(URL url, NacosNamingServiceWrapper namingService) {
super(url, namingService);
}
@Override
public void register(URL url) {
log.info("Nacos2Registry register before setting,url:{}",url);
url = url.setHost(NetUtils.getIpAddress());
log.info("Nacos2Registry register after setting,url:{}",url);
super.register(url);
}
@Override
public void unregister(URL url) {
log.info("Nacos2Registry unregister,url:{}",url);
url = url.setHost(NetUtils.getIpAddress());
super.unregister(url);
}
}`

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