0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-30 22:34:15 -05:00

httpcaddyfile: Sort Caddyfile slice

Makes list deterministic. See #5538
This commit is contained in:
Matthew Holt 2023-05-17 13:50:32 -06:00
parent cbf16f6d9e
commit ca14b6edd9
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -173,6 +173,7 @@ func (h Helper) Caddyfiles() []string {
for file := range files {
filesSlice = append(filesSlice, file)
}
sort.Strings(filesSlice)
return filesSlice
}