mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-31 02:58:28 +01:00
tell stupid ai not to meddle with the paths on other platforms by adding a copy
This commit is contained in:
@@ -180,9 +180,7 @@ func (u *StdConn) ListenOut(r EncReader) {
|
||||
u.l.WithError(err).Error("unexpected udp socket receive error")
|
||||
}
|
||||
|
||||
payload := make([]byte, n)
|
||||
copy(payload, buffer[:n])
|
||||
r(netip.AddrPortFrom(rua.Addr().Unmap(), rua.Port()), payload, func() {})
|
||||
r(netip.AddrPortFrom(rua.Addr().Unmap(), rua.Port()), buffer[:n], nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user