Check if URIPORT is 0

bug/bundler_fix
wchen-r7 2015-07-14 14:45:10 -05:00
parent 5e63b5f93e
commit d64f4be691
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ module Msf
else
host = Rex::Socket.source_address
end
port = datastore['URIPORT'] || datastore['SRVPORT']
port = datastore['URIPORT'] == 0 ? datastore['SRVPORT'] : datastore['URIPORT']
resource = mod.datastore['URIPATH']
url = "#{proto}://#{host}:#{port}#{resource}"
urls << url