mirror of
https://github.com/nmap/nmap.git
synced 2025-12-28 18:39:03 +00:00
Let ssl-cert grab certs from DTLS services. Fix rules for TCP-only scripts
This commit is contained in:
@@ -40,7 +40,7 @@ categories = {"discovery", "safe", "default"}
|
||||
dependencies = {"https-redirect"}
|
||||
|
||||
portrule = function(host, port)
|
||||
return shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port)
|
||||
return port.protocol == "tcp" and (shortport.ssl(host, port) or sslcert.getPrepareTLSWithoutReconnect(port))
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user