Skip to content

Commit 2ceeff2

Browse files
committed
http/server: Fix broken h2 cipher check in alpn callback
The cipher is not yet picked at the time of ALPN
1 parent 77d0bb4 commit 2ceeff2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎http/server.lua‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ local function alpn_select_either(ssl, protos) -- luacheck: ignore 212
182182
for _, proto in ipairs(protos) do
183183
if proto == "h2" then
184184
-- HTTP2 only allows >=TLSv1.2
185-
if ssl:getVersion() >= openssl_ssl.TLS1_2_VERSION
186-
and not http_tls.banned_ciphers[ssl:getCipherInfo().name] then
185+
if ssl:getVersion() >= openssl_ssl.TLS1_2_VERSION then
187186
return proto
188187
end
189188
elseif proto == "http/1.1" then

0 commit comments

Comments
 (0)