zhoutianli518 commented on issue #8726:
URL: https://github.com/apache/dubbo/issues/8726#issuecomment-938272079


           // registry port, not used as bind port by default
           String key = DUBBO_PORT_TO_REGISTRY;
           if (protocolConfigNum > 1) {
               key = getProtocolConfigId(protocolConfig).toUpperCase() + "_" + 
key;
           }
           String portToRegistryStr = getValueFromConfig(protocolConfig, key);
           Integer portToRegistry = parsePort(portToRegistryStr);
           if (portToRegistry == null) {
               portToRegistry = portToBind;
           }
   
           // save bind port, used as url's key later
           map.put(BIND_PORT_KEY, String.valueOf(portToRegistry));
   
           return portToRegistry;
       }
   
   
   感觉上面的代码,将
    map.put(BIND_PORT_KEY, String.valueOf(portToRegistry));
   改成 
   map.put(BIND_PORT_KEY, String.valueOf(portToBind));  更合适一点。
   绑定端口和注册端口是可以不一样的。这样就和以前一样,能解决@ fl061157 提出的问题了。


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

Reply via email to