mirror of
https://github.com/sonertari/SSLproxy
synced 2024-11-19 21:25:28 +00:00
Improve SNI peek debugging
This commit is contained in:
parent
469a6e470d
commit
146188b750
@ -1576,8 +1576,10 @@ pxy_fd_readcb(MAYBE_UNUSED evutil_socket_t fd, UNUSED short what, void *arg)
|
|||||||
|
|
||||||
ctx->sni = ssl_tls_clienthello_parse_sni(buf, &n);
|
ctx->sni = ssl_tls_clienthello_parse_sni(buf, &n);
|
||||||
if (OPTS_DEBUG(ctx->opts)) {
|
if (OPTS_DEBUG(ctx->opts)) {
|
||||||
log_dbg_printf("SNI peek: [%s]\n",
|
log_dbg_printf("SNI peek: [%s] [%s]\n",
|
||||||
ctx->sni ? ctx->sni : "n/a");
|
ctx->sni ? ctx->sni : "n/a",
|
||||||
|
(!ctx->sni && (n == -1)) ?
|
||||||
|
"incomplete" : "complete");
|
||||||
}
|
}
|
||||||
if (!ctx->sni && (n == -1) && (ctx->sni_peek_retries++ < 50)) {
|
if (!ctx->sni && (n == -1) && (ctx->sni_peek_retries++ < 50)) {
|
||||||
/* ssl_tls_clienthello_parse_sni indicates that we
|
/* ssl_tls_clienthello_parse_sni indicates that we
|
||||||
|
Loading…
Reference in New Issue
Block a user