From 3f48a2eb455167af8d77c5c4543bd17a80a93260 Mon Sep 17 00:00:00 2001 From: Mark Sargent <99003+sarge@users.noreply.github.com> Date: Wed, 18 Mar 2020 07:39:01 +1300 Subject: 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 --- caddyconfig/httpcaddyfile/httptype.go | 1 + 1 file changed, 1 insertion(+) (limited to 'caddyconfig/httpcaddyfile') 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 } -- cgit v1.2.3