aofall commented on issue #13305:
URL: https://github.com/apache/dubbo/issues/13305#issuecomment-1794650160

   
https://github.com/apache/dubbo/blob/7264850fd45f2a4d06b07081d0d8e1eab10fc8db/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/filter/support/ConsumerContextFilter.java#L68
   
   caused by 
`org.apache.dubbo.rpc.cluster.filter.support.ConsumerContextFilter#invoke` 
declare the port is `0`
   
   I try to fixed it but found another bug, if there are multiple network 
interface and using `dubbo.protocol.host` specify one of the IP in 
`application.yml`, the `host` is incorrect also.
   
   
![image](https://github.com/apache/dubbo/assets/10182210/b5906749-147c-4edd-8889-2b29331dbc43)
   
   
![image](https://github.com/apache/dubbo/assets/10182210/1e733705-b2a7-4b68-9925-740db41ab4bc)
   
   Should we add more parameter to the `org.apache.dubbo.common.URL` when 
registering the consumer? Then we can get the get the correct parameters and 
get expected results in 
`RpcContext.getServiceContext().getLocalAddressString()`.
   
   
   


-- 
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: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to