diff --git a/main.go b/main.go index 51d1430..f0facbe 100644 --- a/main.go +++ b/main.go @@ -43,8 +43,8 @@ func main() { } defer l.Close() + buf := make([]byte, 1024) for { - buf := make([]byte, 1024) n, raddr, err := l.ReadFrom(buf) log.Printf("received packet %d\n", n)