You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/06/24 11:26:43 UTC
[dubbo] branch 3.0 updated: fix #10202, use getRemoteAddress (#10203)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new c85195fc36 fix #10202, use getRemoteAddress (#10203)
c85195fc36 is described below
commit c85195fc360f1625e8509a2394592ec1afe4300a
Author: Wang Chengming <63...@qq.com>
AuthorDate: Fri Jun 24 19:26:01 2022 +0800
fix #10202, use getRemoteAddress (#10203)
Co-authored-by: 呈铭 <be...@antgroup.com>
---
.../java/org/apache/dubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java
index cf8b569f2d..120c3f8d42 100644
--- a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java
+++ b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java
@@ -137,7 +137,7 @@ class ChannelWrappedInvoker<T> extends AbstractInvoker<T> {
@Override
public InetSocketAddress getRemoteAddress() {
- return channel.getLocalAddress();
+ return channel.getRemoteAddress();
}
@Override