diff --git a/pkg/server/configurationwatcher.go b/pkg/server/configurationwatcher.go index 8bca826cf..3434e727a 100644 --- a/pkg/server/configurationwatcher.go +++ b/pkg/server/configurationwatcher.go @@ -241,10 +241,14 @@ func isEmptyConfiguration(conf *dynamic.Configuration) bool { if conf.HTTP == nil { conf.HTTP = &dynamic.HTTPConfiguration{} } + if conf.UDP == nil { + conf.UDP = &dynamic.UDPConfiguration{} + } httpEmpty := conf.HTTP.Routers == nil && conf.HTTP.Services == nil && conf.HTTP.Middlewares == nil tlsEmpty := conf.TLS == nil || conf.TLS.Certificates == nil && conf.TLS.Stores == nil && conf.TLS.Options == nil tcpEmpty := conf.TCP.Routers == nil && conf.TCP.Services == nil + udpEmpty := conf.UDP.Routers == nil && conf.UDP.Services == nil - return httpEmpty && tlsEmpty && tcpEmpty + return httpEmpty && tlsEmpty && tcpEmpty && udpEmpty }