shithub: misc

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