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