From 4f6dd097c9e1c4bc9c9f93acf5bc633c1afb4eaf Mon Sep 17 00:00:00 2001 From: david Date: Tue, 29 May 2012 21:05:40 +0000 Subject: [PATCH] Add host.name fallback for xmpp-info name selection. --- scripts/xmpp-info.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xmpp-info.nse b/scripts/xmpp-info.nse index 223aab0e7..8c26024b9 100644 --- a/scripts/xmpp-info.nse +++ b/scripts/xmpp-info.nse @@ -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