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:
parent
cbf16f6d9e
commit
ca14b6edd9
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ func (h Helper) Caddyfiles() []string {
|
||||||
for file := range files {
|
for file := range files {
|
||||||
filesSlice = append(filesSlice, file)
|
filesSlice = append(filesSlice, file)
|
||||||
}
|
}
|
||||||
|
sort.Strings(filesSlice)
|
||||||
return filesSlice
|
return filesSlice
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue