From cccfe3b4efb45b443dcbef9ab26a4ec4ffb46eab Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 5 Oct 2017 11:11:48 -0600 Subject: [PATCH] proxy: Allow insecure certificate in QUIC tests --- caddyhttp/proxy/proxy_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caddyhttp/proxy/proxy_test.go b/caddyhttp/proxy/proxy_test.go index e716c0af..5876a29a 100644 --- a/caddyhttp/proxy/proxy_test.go +++ b/caddyhttp/proxy/proxy_test.go @@ -1530,7 +1530,7 @@ func TestQuic(t *testing.T) { } upstream := "quic.clemente.io:8086" - config := "proxy / quic://" + upstream + config := "proxy / quic://" + upstream + " {\n\tinsecure_skip_verify\n}" content := "Hello, client" // make proxy @@ -1556,7 +1556,7 @@ func TestQuic(t *testing.T) { }) err = h2quic.ListenAndServeQUIC( 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"), handler, )