log info about SNI, punycode and matched vhost

This commit is contained in:
Omar Polo 2021-01-27 15:06:15 +00:00
parent caad03081b
commit 22c6d6334d
1 changed files with 5 additions and 0 deletions

View File

@ -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;