Revert to older logic allowing rejection of protocol if server chooses a different one

This commit is contained in:
dmiller 2017-02-24 15:47:50 +00:00
parent 21553bebb9
commit 189e6ac201

View file

@ -630,7 +630,7 @@ local function find_ciphers_group(host, port, protocol, group, scores)
end
if server_hello.protocol ~= protocol then
ctx_log(1, protocol, "Protocol rejected. cipher: %s", server_hello.cipher)
protocol_worked = (protocol_worked == nil) and nil or false
protocol_worked = protocol_worked or nil
break
else
protocol_worked = true