This commit is contained in:
JackDoan
2025-10-31 13:43:28 -05:00
parent 469a5fc350
commit 703ac81fa6
3 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -11,7 +11,6 @@ const MTU = 9001
type EncReader func(
addr netip.AddrPort,
payload []byte,
q int,
)
type Conn interface {

View File

@@ -222,7 +222,7 @@ func (u *StdConn) ListenOut(r EncReader) {
}
}
r(addr, buffers[i][:payloadLen], 0)
r(addr, buffers[i][:payloadLen])
}
}
}
@@ -627,7 +627,7 @@ func (u *StdConn) emitSegments(r EncReader, addr netip.AddrPort, payload []byte,
//segment := append([]byte(nil), payload[start:end]...)
//q := numSegments % 4 //TODO
r(addr, payload[start:end], 0)
r(addr, payload[start:end])
numSegments++
//segments = append(segments, segment)
start = end