mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
httpcaddyfile: Fix string does not match ~[]E
error (#5675)
Only happens for some people. Unable to confirm.
This commit is contained in:
parent
1913930783
commit
4aa4f3ac70
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ func (st ServerType) Setup(
|
|||
defaultLog.Exclude = append(defaultLog.Exclude, ncl.log.Include...)
|
||||
|
||||
// avoid duplicates by sorting + compacting
|
||||
slices.Sort[string](defaultLog.Exclude)
|
||||
sort.Strings(defaultLog.Exclude)
|
||||
defaultLog.Exclude = slices.Compact[[]string, string](defaultLog.Exclude)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue