0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

proxy: Allow insecure certificate in QUIC tests

This commit is contained in:
Matthew Holt 2017-10-05 11:11:48 -06:00
parent f71955e89c
commit cccfe3b4ef
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -1530,7 +1530,7 @@ func TestQuic(t *testing.T) {
} }
upstream := "quic.clemente.io:8086" upstream := "quic.clemente.io:8086"
config := "proxy / quic://" + upstream config := "proxy / quic://" + upstream + " {\n\tinsecure_skip_verify\n}"
content := "Hello, client" content := "Hello, client"
// make proxy // make proxy
@ -1556,7 +1556,7 @@ func TestQuic(t *testing.T) {
}) })
err = h2quic.ListenAndServeQUIC( err = h2quic.ListenAndServeQUIC(
upstream, upstream,
path.Join(dir, "testdata", "fullchain.pem"), path.Join(dir, "testdata", "fullchain.pem"), // TODO: Use a dynamically-generated, self-signed cert instead
path.Join(dir, "testdata", "privkey.pem"), path.Join(dir, "testdata", "privkey.pem"),
handler, handler,
) )