This commit is contained in:
Josh Deprez 2024-03-30 14:56:04 +11:00
parent 785f6962e3
commit 6592189300
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -111,6 +111,10 @@ func main() {
// Incoming packet loop
for {
if ctx.Err() != nil {
return
}
pktbuf := make([]byte, 65536)
pktlen, raddr, readErr := ln.ReadFromUDP(pktbuf)
// net.PacketConn.ReadFrom: "Callers should always process