mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
Stream ssl_preread: relaxed SSL version check.
SSL version 3.0 can be specified by the client at the record level for compatibility reasons. Previously, ssl_preread module rejected such connections, presuming they don't have SNI. Now SSL 3.0 is allowed at the record level.
This commit is contained in:
parent
853c208fc9
commit
393636d79c
@ -142,7 +142,7 @@ ngx_stream_ssl_preread_handler(ngx_stream_session_t *s)
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
if (p[1] != 3 || p[2] == 0) {
|
||||
if (p[1] != 3) {
|
||||
ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
|
||||
"ssl preread: unsupported SSL version");
|
||||
return NGX_DECLINED;
|
||||
|
Loading…
Reference in New Issue
Block a user