Skip to content

Commit

Permalink
Polish apache#6476 : [Issue] The missing protocol of MetadataReportCo…
Browse files Browse the repository at this point in the history
…nfig when the proeprty "useAsMetadataCenter" of RegistryConfig is enabled
  • Loading branch information
mercyblitz committed Jul 16, 2020
1 parent 5eb8b22 commit b80c1f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ private String getRegistryCompatibleAddress(RegistryConfig registryConfig) {
if (isEmpty(protocolFromAddress)) {
// If the protocol from address is missing, is like :
// "dubbo.registry.address = 127.0.0.1:2181"
String protocolFromConfig = registryConfig.getAddress();
String protocolFromConfig = registryConfig.getProtocol();
metadataAddressBuilder.append(protocolFromConfig).append("://");
}
metadataAddressBuilder.append(address);
Expand Down

0 comments on commit b80c1f3

Please sign in to comment.