From ed86c7c91fe3fb673ad80199828213700936a5df Mon Sep 17 00:00:00 2001 From: Vladimir Kobal Date: Tue, 27 Jan 2026 10:44:30 +0100 Subject: [PATCH] Restore ALPN debug messages --- src/ngx_http_ssl_ja4_module.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ngx_http_ssl_ja4_module.h b/src/ngx_http_ssl_ja4_module.h index 24b8761..afdae9e 100644 --- a/src/ngx_http_ssl_ja4_module.h +++ b/src/ngx_http_ssl_ja4_module.h @@ -373,17 +373,17 @@ ngx_ssl_ja4_detail_print(ngx_pool_t *pool, ngx_ssl_ja4_t *ja4) /* ALPN Values */ // handle if null - // if (ja4->alpn_first_value == NULL) - // { - // ngx_log_debug1(NGX_LOG_DEBUG_EVENT, - // pool->log, 0, "ssl_ja4: ALPN Value: NULL\n"); - // } - // else - // { - // ngx_log_debug1(NGX_LOG_DEBUG_EVENT, - // pool->log, 0, "ssl_ja4: ALPN Value: %s\n", - // ja4->alpn_first_value); - // } + if (ja4->alpn_first_value == NULL) + { + ngx_log_debug0(NGX_LOG_DEBUG_EVENT, + pool->log, 0, "ssl_ja4: ALPN Value: NULL\n"); + } + else + { + ngx_log_debug1(NGX_LOG_DEBUG_EVENT, + pool->log, 0, "ssl_ja4: ALPN Value: %s\n", + ja4->alpn_first_value); + } } #endif