This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch reduce-handle-connect-time
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git


The following commit(s) were added to refs/heads/reduce-handle-connect-time by 
this push:
     new 1509738  update conntrack
1509738 is described below

commit 15097389af12b570837ba80c57731d091fb72c3c
Author: mrproliu <[email protected]>
AuthorDate: Sat Dec 28 13:21:39 2024 +0800

    update conntrack
---
 pkg/tools/ip/conntrack.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pkg/tools/ip/conntrack.go b/pkg/tools/ip/conntrack.go
index e8c7487..0207b1c 100644
--- a/pkg/tools/ip/conntrack.go
+++ b/pkg/tools/ip/conntrack.go
@@ -116,7 +116,8 @@ func (c *ConnTrack) UpdateRealPeerAddress(addr *SocketPair) 
bool {
                return false
        }
 
-       addr.DestIP = get.TupleReply.IP.DestinationAddress.String()
-       log.Info("update real peer address: ", addr.DestIP)
+       addr.DestIP = get.TupleReply.IP.SourceAddress.String()
+       addr.DestPort = get.TupleReply.Proto.SourcePort
+       log.Infof("update real peer address: %s:%d", addr.DestIP, addr.DestPort)
        return true
 }

Reply via email to