shithub: misc

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