new tun interface

This commit is contained in:
JackDoan
2026-04-17 10:25:05 -05:00
parent c08ed7d626
commit 7bb5cd477e
4 changed files with 36 additions and 4 deletions

View File

@@ -353,8 +353,7 @@ func (f *Interface) listenOut(i int) {
nb := make([]byte, 12, 12)
listener := func(fromUdpAddr netip.AddrPort, payload []byte, meta udp.RxMeta) {
plaintext := f.batchers[i].Reserve(len(payload))
f.readOutsidePackets(ViaSender{UdpAddr: fromUdpAddr}, plaintext[:0], payload, h, fwPacket, lhh, nb, i, ctCache.Get(), meta)
f.readOutsidePackets(ViaSender{UdpAddr: fromUdpAddr}, payload, h, fwPacket, lhh, nb, i, ctCache.Get(), meta)
}
flusher := func() {