Commit Diff


commit - caad03081b5ab370b8e0aaee5795ff36fa6febd8
commit + 22c6d6334deef920cd0212ca92f61d315860177a
blob - 526d6c7dcb10507278f81fa92c85e9f519c896fa
blob + f17bdd7d268f4432e9777ae18ea79fab405402da
--- server.c
+++ server.c
@@ -275,6 +275,11 @@ handle_handshake(struct pollfd *fds, struct client *c)
 			break;
 	}
 
+	LOGD(c, "handshake: SNI: \"%s\"; decoded: \"%s\"; matched: \"%s\"",
+	    servname != NULL ? servname : "(null)",
+	    c->domain,
+	    h->domain != NULL ? h->domain : "(null)");
+
 	if (h->domain != NULL) {
 		c->state = S_OPEN;
 		c->host = h;