Commit cccfe3b4 authored by Matthew Holt's avatar Matthew Holt

proxy: Allow insecure certificate in QUIC tests

parent f71955e8
...@@ -1530,7 +1530,7 @@ func TestQuic(t *testing.T) { ...@@ -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) { ...@@ -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,
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment