mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 17:56:34 +08:00
a66f461201
In the v1 Caddyfile, only the first matching site definition would be used, so setting these `Terminal: true` ensures that only the first matching one is used in v2, too. We also have to sort by key specificity... Caddy 1 had a special data structure for selecting the most specific site definition, but we don't have that structure in v2, so we need to sort by length (of host and path, separately). For blocks where more than one key is present, we choose the longest host and path (independently, need not be from same key) by which to sort. |
||
---|---|---|
.. | ||
addresses_fuzz.go | ||
addresses_test.go | ||
addresses.go | ||
builtins.go | ||
directives.go | ||
httptype.go | ||
options.go | ||
parser_test.go |