Skip to content

Commit

Permalink
tuple: bugfix for tuple ipv4 dst ip info (#735)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhang Huimin <[email protected]>
  • Loading branch information
chilli13 and Zhang Huimin authored Feb 14, 2025
1 parent d0245d5 commit 6f78052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/event/event_openssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (ce *ConnDataEvent) Decode(payload []byte) (err error) {
copy(data, payload)

if ce.Family == unix.AF_INET {
saddr, daddr := netip.AddrFrom4([4]byte(ce.Saddr[:4])), netip.AddrFrom4([4]byte(ce.Saddr[:4]))
saddr, daddr := netip.AddrFrom4([4]byte(ce.Saddr[:4])), netip.AddrFrom4([4]byte(ce.Daddr[:4]))
ce.Tuple = fmt.Sprintf("%s:%d-%s:%d", saddr, ce.Sport, daddr, ce.Dport)
} else {
saddr, daddr := netip.AddrFrom16(ce.Saddr), netip.AddrFrom16(ce.Daddr)
Expand Down

0 comments on commit 6f78052

Please sign in to comment.