diff --git a/lib/msf/core/exploit/http/server.rb b/lib/msf/core/exploit/http/server.rb index 515d85fc3d..8414c642f8 100644 --- a/lib/msf/core/exploit/http/server.rb +++ b/lib/msf/core/exploit/http/server.rb @@ -476,7 +476,7 @@ module Exploit::Remote::HttpServer host = "[#{host}]" end - if datastore['URIPORT'] + if datastore['URIPORT'] != 0 port = ':' + datastore['URIPORT'].to_s elsif (ssl and datastore["SRVPORT"] == 443) port = ''