]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect: add quic connection information
authorCering <gfypm@qq.com>
Wed, 10 Aug 2022 04:27:09 +0000 (12:27 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Aug 2022 06:41:50 +0000 (08:41 +0200)
Fixes #9286
Closes #9287

.mailmap
lib/connect.c

index e55d77efd33091dc014fc1f4361245ad3368cba5..58102d0ac06be9379256844dbc5aa6e03a2ef104 100644 (file)
--- a/.mailmap
+++ b/.mailmap
@@ -94,3 +94,4 @@ Max Mehl <max.mehl@fsfe.org>
 rzrymiak on github <106121613+rzrymiak@users.noreply.github.com>
 Oliver Roberts <oliver@futaura.co.uk>
 opensignature on github <antonio@piumarossa.it>
+Cering on github <gfypm@qq.com>
index 38f75e09f2eee0925f3868f0609e968a7fcfe441..76d02a2fde480e8421e483a54ccfdf98e2092038 100644 (file)
@@ -766,6 +766,13 @@ void Curl_updateconninfo(struct Curl_easy *data, struct connectdata *conn,
       Curl_conninfo_remote(data, conn, sockfd);
     Curl_conninfo_local(data, sockfd, local_ip, &local_port);
   } /* end of TCP-only section */
+#ifdef ENABLE_QUIC
+  else if(conn->transport == TRNSPRT_QUIC) {
+    if(!conn->bits.reuse)
+      Curl_conninfo_remote(data, conn, sockfd);
+    Curl_conninfo_local(data, sockfd, local_ip, &local_port);
+  }
+#endif
 
   /* persist connection info in session handle */
   Curl_persistconninfo(data, conn, local_ip, local_port);