mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
This commit is contained in:
parent
f8d1c7e3c9
commit
49c6fedfe4
@ -286,7 +286,7 @@ public class DubboServiceMetadataRepository {
|
||||
// To use InetUtils to set IP if they are different
|
||||
// issue : https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/589
|
||||
if (!Objects.equals(url.getHost(), ipAddress)) {
|
||||
actualURL = url.setAddress(hostInfo.getIpAddress());
|
||||
actualURL = url.setHost(ipAddress);
|
||||
}
|
||||
this.allExportedURLs.add(actualURL.getServiceKey(), actualURL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user