From 8eb63902b09bd91847c7256bde7996881c2abbc4 Mon Sep 17 00:00:00 2001 From: Adphi Date: Tue, 18 Mar 2025 13:23:34 +0100 Subject: [PATCH] service: do not use cmux if there is no http server Signed-off-by: Adphi --- service/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/service.go b/service/service.go index af6c2f9..93a1cd1 100644 --- a/service/service.go +++ b/service/service.go @@ -247,7 +247,7 @@ func (s *service) start() (*errgroup.Group, error) { } fn := s.runWithCmux - if s.opts.withoutCmux { + if s.opts.withoutCmux || s.opts.mux == nil { fn = s.runWithoutCmux }