Skip to content

Commit dec2ddf

Browse files
minus7zx2c4
authored andcommitted
conn: linux: fix incorrect endpoint address
Signed-off-by: Thomas Renoth <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent ffb742d commit dec2ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: conn/bind_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func (end *LinuxSocketEndpoint) SrcIP() netip.Addr {
275275

276276
func (end *LinuxSocketEndpoint) DstIP() netip.Addr {
277277
if !end.isV6 {
278-
return netip.AddrFrom4(end.src4().Src)
278+
return netip.AddrFrom4(end.dst4().Addr)
279279
} else {
280280
return netip.AddrFrom16(end.dst6().Addr)
281281
}

0 commit comments

Comments
 (0)