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"
|
||||
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,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue