diff --git a/caddy.go b/caddy.go index 032d8721..8da6d4db 100644 --- a/caddy.go +++ b/caddy.go @@ -518,6 +518,11 @@ func startWithListenerFds(cdyfile Input, inst *Instance, restartFds map[string]r } if !Quiet { for _, srvln := range inst.servers { + // only show FD notice if the listener is not nil. + // This can happen when only serving UDP or TCP + if srvln.listener == nil { + continue + } if !IsLoopback(srvln.listener.Addr().String()) { checkFdlimit() break