honor the SSL option in HttpServer, fixes #1001

git-svn-id: file:///home/svn/framework3/trunk@8699 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-03-03 18:47:04 +00:00
parent fb5906385d
commit 7d348c3593
2 changed files with 3 additions and 2 deletions

View File

@ -361,6 +361,7 @@ module Exploit::Remote::HttpServer
Rex::Proto::Http::Server,
opts['ServerPort'].to_i,
opts['ServerHost'],
datastore['SSL'],
{
'Msf' => framework,
'MsfExploit' => self,

View File

@ -99,14 +99,14 @@ class Server
# Initializes an HTTP server as listening on the provided port and
# hostname.
#
def initialize(port = 80, listen_host = '0.0.0.0', context = {})
def initialize(port = 80, listen_host = '0.0.0.0', ssl = false, context = {})
self.listen_host = listen_host
self.listen_port = port
self.context = context
self.listener = nil
self.resources = {}
self.server_name = DefaultServer
self.ssl = false
self.ssl = ssl
end
#