fix: don't allow routers higher than internal ones

This commit is contained in:
Ludovic Fernandez 2024-02-15 16:40:05 +01:00 committed by GitHub
parent 6a2db4e4e9
commit 1e7dbc70a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 45 additions and 45 deletions

View file

@ -95,7 +95,7 @@ type RedirectEntryPoint struct {
func (r *RedirectEntryPoint) SetDefaults() {
r.Scheme = "https"
r.Permanent = true
r.Priority = math.MaxInt32 - 1
r.Priority = math.MaxInt - 1
}
// TLSConfig is the default TLS configuration for all the routers associated to the concerned entry point.