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
}