Skip to content

Commit

Permalink
httpcaddyfile: Fix string does not match ~[]E error (#5675)
Browse files Browse the repository at this point in the history
Only happens for some people. Unable to confirm.
  • Loading branch information
hslatman authored Aug 3, 2023
1 parent 1913930 commit 4aa4f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddyconfig/httpcaddyfile/httptype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 4aa4f3a

Please sign in to comment.