From 4aa4f3ac70c682fb25db1283ea8516598528995a Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Thu, 3 Aug 2023 02:41:37 +0200 Subject: httpcaddyfile: Fix `string does not match ~[]E` error (#5675) Only happens for some people. Unable to confirm. --- caddyconfig/httpcaddyfile/httptype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'caddyconfig') diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index 78a380c..ce2ebde 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -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) } } -- cgit v1.2.3