diff options
author | Mark Sargent <99003+sarge@users.noreply.github.com> | 2020-03-18 07:39:01 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 12:39:01 -0600 |
commit | 3f48a2eb455167af8d77c5c4543bd17a80a93260 (patch) | |
tree | 3a104fabecf515b2d295f7e7240f506501ef3102 /caddyconfig | |
parent | f192ae5ea5c1e20e0c6aefc0772f0a92ee142f1e (diff) |
caddyhttp: Add default SNI tests (#3146)
* added sni tests
* set the default sni when there is no host to match
* removed invalid sni test. Disabled tests that rely on host headers.
* readded SNI tests. Added logging of config load times
Diffstat (limited to 'caddyconfig')
-rw-r--r-- | caddyconfig/httpcaddyfile/httptype.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index e0a6c1c..15cfe1e 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -530,6 +530,7 @@ func (st *ServerType) serversFromPairings( "sni": caddyconfig.JSON(hosts, warnings), // make sure to match all hosts, not just auto-HTTPS-qualified ones } } else { + cp.DefaultSNI = defaultSNI hasCatchAllTLSConnPolicy = true } |