Land #6968, get_uri URIPORT fix (again)
commit
f7d261516d
|
@ -425,7 +425,7 @@ module Exploit::Remote::HttpServer
|
|||
host = "[#{host}]"
|
||||
end
|
||||
|
||||
if datastore['URIPORT'] != 0
|
||||
if datastore['URIPORT'] && datastore['URIPORT'] != 0
|
||||
port = ':' + datastore['URIPORT'].to_s
|
||||
elsif (ssl and datastore["SRVPORT"] == 443)
|
||||
port = ''
|
||||
|
|
Loading…
Reference in New Issue