shithub: misc

ref: 06ded18ce9088df6aa259598454f804df3f44ff3
dir: /9legacy/hget_SNI.diff/

View raw version
--- sys/src/cmd/hget.c	Tue Feb  9 20:28:48 2010
+++ /sys/src/cmd/hget.c	Thu Jul 15 09:22:35 2021
@@ -353,6 +353,7 @@
 			TLSconn conn;
 
 			memset(&conn, 0, sizeof conn);
+			conn.serverName = u->host;
 			tfd = tlsClient(fd, &conn);
 			if(tfd < 0){
 				fprint(2, "tlsClient: %r\n");