We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb742d commit dec2ddfCopy full SHA for dec2ddf
conn/bind_linux.go
@@ -275,7 +275,7 @@ func (end *LinuxSocketEndpoint) SrcIP() netip.Addr {
275
276
func (end *LinuxSocketEndpoint) DstIP() netip.Addr {
277
if !end.isV6 {
278
- return netip.AddrFrom4(end.src4().Src)
+ return netip.AddrFrom4(end.dst4().Addr)
279
} else {
280
return netip.AddrFrom16(end.dst6().Addr)
281
}
0 commit comments