Add TCP Middlewares support

This commit is contained in:
Romain
2021-06-11 15:30:05 +02:00
committed by GitHub
parent 679def0151
commit fc9f41b955
134 changed files with 5865 additions and 1852 deletions

View File

@@ -253,7 +253,7 @@ func isEmptyConfiguration(conf *dynamic.Configuration) bool {
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
tcpEmpty := conf.TCP.Routers == nil && conf.TCP.Services == nil && conf.TCP.Middlewares == nil
udpEmpty := conf.UDP.Routers == nil && conf.UDP.Services == nil
return httpEmpty && tlsEmpty && tcpEmpty && udpEmpty