Skip to content

Commit

Permalink
Update caddyconfig/httpcaddyfile/httptype.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt authored Oct 11, 2023
1 parent dd3e2a4 commit 9615467
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 @@ -685,7 +685,7 @@ func (st *ServerType) serversFromPairings(
}

if len(hosts) > 0 {
slices.Sort(hosts)
slices.Sort(hosts) // for deterministic JSON output
cp.MatchersRaw = caddy.ModuleMap{
"sni": caddyconfig.JSON(hosts, warnings), // make sure to match all hosts, not just auto-HTTPS-qualified ones
}
Expand Down

0 comments on commit 9615467

Please sign in to comment.