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:
parent
f71955e89c
commit
cccfe3b4ef
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue