AUDIT changes

This commit is contained in:
jdl
2026-06-13 00:10:21 +02:00
parent 11f6f2fc75
commit cd5442f3bf
6 changed files with 10 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ func receiver(vpnNet netip.Prefix, selfVPNIP netip.Addr, ch chan<- Packet) error
}
defer conn.Close()
buf := make([]byte, BufferSize+1) // +1 to detect oversized packets
buf := make([]byte, SignedPacketSize+1) // +1 to detect oversized packets
for {
conn.SetReadDeadline(time.Now().Add(32 * time.Second))
@@ -43,7 +43,7 @@ func receiver(vpnNet netip.Prefix, selfVPNIP netip.Addr, ch chan<- Packet) error
continue
}
packet := Unmarshal(buf[:n])
packet := unmarshal(buf[:n])
if packet.PeerIP == selfIP {
continue