diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go index 036b968ef..a34a0e7cc 100644 --- a/cmd/bootnode/main.go +++ b/cmd/bootnode/main.go @@ -107,6 +107,7 @@ func main() { if err != nil { utils.Fatalf("-ListenUDP: %v", err) } + defer conn.Close() realaddr := conn.LocalAddr().(*net.UDPAddr) if natm != nil {