1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 09:59:04 +00:00

Add host.name fallback for xmpp-info name selection.

This commit is contained in:
david
2012-05-29 21:05:40 +00:00
parent 37262e9232
commit 4f6dd097c9

View File

@@ -518,7 +518,7 @@ end
portrule = shortport.port_or_service({5222, 5269}, {"jabber", "xmpp-client", "xmpp-server"})
action = function(host, port)
local server_name = stdnse.get_script_args("xmpp-info.server_name") or host.targetname
local server_name = stdnse.get_script_args("xmpp-info.server_name") or host.targetname or host.name
local alt_server_name = stdnse.get_script_args("xmpp-info.alt_server_name") or "."
local err_tmp = { {}, {} }
local id_tls