mirror of https://github.com/omar-polo/gmid.git
log info about SNI, punycode and matched vhost
This commit is contained in:
parent
caad03081b
commit
22c6d6334d
5
server.c
5
server.c
|
@ -275,6 +275,11 @@ handle_handshake(struct pollfd *fds, struct client *c)
|
||||||
break;
|
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) {
|
if (h->domain != NULL) {
|
||||||
c->state = S_OPEN;
|
c->state = S_OPEN;
|
||||||
c->host = h;
|
c->host = h;
|
||||||
|
|
Loading…
Reference in New Issue