Land #6968, get_uri URIPORT fix (again)

bug/bundler_fix
William Vu 2016-06-13 10:52:29 -05:00
commit f7d261516d
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ module Exploit::Remote::HttpServer
host = "[#{host}]" host = "[#{host}]"
end end
if datastore['URIPORT'] != 0 if datastore['URIPORT'] && datastore['URIPORT'] != 0
port = ':' + datastore['URIPORT'].to_s port = ':' + datastore['URIPORT'].to_s
elsif (ssl and datastore["SRVPORT"] == 443) elsif (ssl and datastore["SRVPORT"] == 443)
port = '' port = ''