fix tun_linux_test.go & a nit

This commit is contained in:
Jay Wren
2025-10-23 16:16:40 -04:00
parent 433c531ae4
commit 0a94f9f990
2 changed files with 13 additions and 12 deletions

View File

@@ -282,7 +282,7 @@ func (f *Interface) listenOut(i int) {
plaintext := make([]byte, udp.MTU)
h := &header.H{}
fwPacket := &firewall.Packet{}
nb := make([]byte, 12, 12)
nb := make([]byte, 12)
li.ListenOut(func(fromUdpAddr netip.AddrPort, payload []byte) {
f.readOutsidePackets(fromUdpAddr, nil, plaintext[:0], payload, h, fwPacket, lhh, nb, i, ctCache.Get(f.l))