1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

switch to DefaultHost/DefaultPort

git-svn-id: file:///home/svn/incoming/trunk@3152 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-11-28 21:56:09 +00:00
parent 514e760b96
commit 3558cd7777

View File

@ -14,6 +14,16 @@ module Msf
###
class Plugin::Msfd < Msf::Plugin
#
# The default local hostname that the server listens on.
#
DefaultHost = "127.0.0.1"
#
# The default local port that the server listens on.
#
DefaultPort = 55554
#
# Initializes the msfd plugin. The following options are supported in the
# hash by this plugin:
@ -38,8 +48,8 @@ class Plugin::Msfd < Msf::Plugin
# Start listening for connections.
self.server = Rex::Socket::TcpServer.create(
'LocalHost' => opts['ServerHost'] || '127.0.0.1',
'LocalPort' => opts['ServerPort'] || 55554)
'LocalHost' => opts['ServerHost'] || DefaultHost,
'LocalPort' => opts['ServerPort'] || DefaultPort)
# If the run in foreground flag is not specified, then go ahead and fire
# it off in a worker thread.