aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/http.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-01-13 19:37:36 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-01-14 11:05:01 +0000
commit102e004727c29072e43dd2c85db7716bdb8d6878 (patch)
treea6a6c68841a7ddbde6998489b2a47677dabbdd4f /pkg/manager/http.go
parent0dce2409ff7389009070e025857c71f752d814e6 (diff)
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.
Diffstat (limited to 'pkg/manager/http.go')
-rw-r--r--pkg/manager/http.go3
1 files changed, 3 insertions, 0 deletions
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}
}