temporarily fix instance url

This commit is contained in:
ken.lj 2020-11-20 21:38:28 +08:00
parent ccab28db82
commit a2b9e0c4c5
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ public class InstanceAddressURL extends URL {
}
String protocolServiceKey = getProtocolServiceKey();
if (StringUtils.isNotEmpty(protocolServiceKey)) {
for (String fullKey : metadataInfo.getParameters(protocolServiceKey).keySet()) {
for (String fullKey : metadataInfo.getServiceInfo(protocolServiceKey).getParams().keySet()) {
if (fullKey.endsWith(suffix)) {
return getParameter(fullKey);
}