mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Revert to older logic allowing rejection of protocol if server chooses a different one
This commit is contained in:
@@ -630,7 +630,7 @@ local function find_ciphers_group(host, port, protocol, group, scores)
|
|||||||
end
|
end
|
||||||
if server_hello.protocol ~= protocol then
|
if server_hello.protocol ~= protocol then
|
||||||
ctx_log(1, protocol, "Protocol rejected. cipher: %s", server_hello.cipher)
|
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
|
break
|
||||||
else
|
else
|
||||||
protocol_worked = true
|
protocol_worked = true
|
||||||
|
|||||||
Reference in New Issue
Block a user