summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHerman Slatman <[email protected]>2023-08-03 02:41:37 +0200
committerGitHub <[email protected]>2023-08-03 00:41:37 +0000
commit4aa4f3ac70c682fb25db1283ea8516598528995a (patch)
tree45b0d57db09fa848a7fc6c15517dc822f1e3823a
parent19139307833fcb36d8af612dfc982b49032f259e (diff)
downloadcaddy-2.7.1.tar.gz
caddy-2.7.1.zip
httpcaddyfile: Fix `string does not match ~[]E` error (#5675)v2.7.1
Only happens for some people. Unable to confirm.
-rw-r--r--caddyconfig/httpcaddyfile/httptype.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go
index 78a380c7e..ce2ebde3e 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)
}
}