From 22c6d6334deef920cd0212ca92f61d315860177a Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 27 Jan 2021 15:06:15 +0000 Subject: [PATCH] log info about SNI, punycode and matched vhost --- server.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.c b/server.c index 526d6c7..f17bdd7 100644 --- a/server.c +++ b/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;