tell stupid ai not to meddle with the paths on other platforms by adding a copy

This commit is contained in:
Ryan Huber
2025-10-31 14:16:02 -04:00
parent 68746bd907
commit 29157f413c
5 changed files with 21 additions and 13 deletions

View File

@@ -149,9 +149,7 @@ func (u *RIOConn) ListenOut(r EncReader) {
continue
}
payload := make([]byte, n)
copy(payload, buffer[:n])
r(netip.AddrPortFrom(netip.AddrFrom16(rua.Addr).Unmap(), (rua.Port>>8)|((rua.Port&0xff)<<8)), payload, func() {})
r(netip.AddrPortFrom(netip.AddrFrom16(rua.Addr).Unmap(), (rua.Port>>8)|((rua.Port&0xff)<<8)), buffer[:n], nil)
}
}