forked from quic-go/quic-go
add a flag to skip certificate verification to the example client
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
func main() {
|
||||
verbose := flag.Bool("v", false, "verbose")
|
||||
quiet := flag.Bool("q", false, "don't print the data")
|
||||
insecure := flag.Bool("insecure", false, "skip certificate verification")
|
||||
flag.Parse()
|
||||
urls := flag.Args()
|
||||
|
||||
@@ -30,7 +31,8 @@ func main() {
|
||||
|
||||
roundTripper := &http3.RoundTripper{
|
||||
TLSClientConfig: &tls.Config{
|
||||
RootCAs: testdata.GetRootCA(),
|
||||
RootCAs: testdata.GetRootCA(),
|
||||
InsecureSkipVerify: *insecure,
|
||||
},
|
||||
}
|
||||
defer roundTripper.Close()
|
||||
|
||||
Reference in New Issue
Block a user