Skip to content

Commit 4aa4f3a

Browse files
authored
httpcaddyfile: Fix string does not match ~[]E error (#5675)
Only happens for some people. Unable to confirm.
1 parent 1913930 commit 4aa4f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddyconfig/httpcaddyfile/httptype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (st ServerType) Setup(
355355
defaultLog.Exclude = append(defaultLog.Exclude, ncl.log.Include...)
356356

357357
// avoid duplicates by sorting + compacting
358-
slices.Sort[string](defaultLog.Exclude)
358+
sort.Strings(defaultLog.Exclude)
359359
defaultLog.Exclude = slices.Compact[[]string, string](defaultLog.Exclude)
360360
}
361361
}

0 commit comments

Comments
 (0)