mirror of
https://github.com/caddyserver/caddy.git
synced 2026-07-10 10:54:28 +00:00
tls: Refactor internals related to TLS configurations (#1466)
* tls: Refactor TLS config innards with a few minor syntax changes muststaple -> must_staple "http2 off" -> "alpn" with list of ALPN values * Fix typo * Fix QUIC handler * Inline struct field assignments
This commit is contained in:
parent
4b877eebc4
commit
73794f2a2c
13 changed files with 316 additions and 301 deletions
|
|
@ -92,7 +92,7 @@ func TestMakeHTTPServer(t *testing.T) {
|
|||
},
|
||||
},
|
||||
} {
|
||||
actual := makeHTTPServer("127.0.0.1:9005", tc.group)
|
||||
actual := makeHTTPServerWithTimeouts("127.0.0.1:9005", tc.group)
|
||||
|
||||
if got, want := actual.Addr, "127.0.0.1:9005"; got != want {
|
||||
t.Errorf("Test %d: Expected Addr=%s, but was %s", i, want, got)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue