Skip to content

Commit f621a45

Browse files
zhaoyuguanghtynkn
authored andcommitted
fix username & password config in dubbo:registry (apache#5075)
1 parent c859ddd commit f621a45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java

+2
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ private void useRegistryForConfigIfNecessary() {
624624
cc.getParameters().put(org.apache.dubbo.remoting.Constants.CLIENT_KEY,rc.getClient());
625625
cc.setProtocol(rc.getProtocol());
626626
cc.setAddress(rc.getAddress());
627+
cc.setUsername(rc.getUsername());
628+
cc.setPassword(rc.getPassword());
627629
cc.setHighestPriority(false);
628630
setConfigCenter(cc);
629631
startConfigCenter();

0 commit comments

Comments
 (0)