]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: use the minimal version of QUIC supported by ngtcp2
authorDaiki Ueno <dueno@redhat.com>
Thu, 26 Nov 2020 08:47:02 +0000 (09:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Nov 2020 22:31:56 +0000 (23:31 +0100)
Closes #6250

lib/vquic/ngtcp2.c

index 348b3bee8d56e1fb95b87f991fe10e9db5c88fc5..fa2a2c30d443a7c8e4136e89f1af8e3853673cf5 100644 (file)
@@ -821,7 +821,7 @@ CURLcode Curl_quic_connect(struct connectdata *conn,
   ngtcp2_addr_init(&path.remote, addr, addrlen, NULL);
 
   rc = ngtcp2_conn_client_new(&qs->qconn, &qs->dcid, &qs->scid, &path,
-                              NGTCP2_PROTO_VER_MAX, &ng_callbacks,
+                              NGTCP2_PROTO_VER_MIN, &ng_callbacks,
                               &qs->settings, NULL, qs);
   if(rc)
     return CURLE_QUIC_CONNECT_ERROR;