httpcaddyfile: Fix string does not match ~[]E error (#5675)

Only happens for some people. Unable to confirm.
This commit is contained in:
Herman Slatman 2023-08-03 02:41:37 +02:00 committed by GitHub
parent 1913930783
commit 4aa4f3ac70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}