shithub: misc

ref: e4ef7a58376951b392786e9a7cc38e32b7d9cdc6
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");