Skip to content

Commit ac4b2be

Browse files
committed
Land rapid7#4181 - Fix nil URIPORT in get_uri (HttpServer)
2 parents 7058966 + 89a8d27 commit ac4b2be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/http/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def get_uri(cli=self.cli)
476476
host = "[#{host}]"
477477
end
478478

479-
if datastore['URIPORT']
479+
if datastore['URIPORT'] != 0
480480
port = ':' + datastore['URIPORT'].to_s
481481
elsif (ssl and datastore["SRVPORT"] == 443)
482482
port = ''

0 commit comments

Comments
 (0)