From 102e004727c29072e43dd2c85db7716bdb8d6878 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 13 Jan 2025 19:37:36 +0100 Subject: all: support empty HTTP config We don't really need an HTTP server when running syz-manager during kernel image testing and when running syz-diff automatically. Don't require the config to be set and don't start the HTTP server in this case. --- pkg/manager/http.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/manager/http.go') diff --git a/pkg/manager/http.go b/pkg/manager/http.go index 6d4e2ac40..65f0a5714 100644 --- a/pkg/manager/http.go +++ b/pkg/manager/http.go @@ -68,6 +68,9 @@ type HTTPServer struct { } func (serv *HTTPServer) Serve() { + if serv.Cfg.HTTP == "" { + log.Fatalf("starting a disabled HTTP server") + } if serv.Pool != nil { serv.Pools = map[string]*vm.Dispatcher{"": serv.Pool} } -- cgit mrf-deployment