Skip to content

Commit 55b71e1

Browse files
author
Brent Cook
committed
Land rapid7#8535, MSGRPC module minor fixes
2 parents 53253bf + 40fafaa commit 55b71e1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/msf/core/rpc/v10/service.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def start
7676

7777
def stop
7878
self.service.stop
79+
self.service.deref
7980
end
8081

8182
def wait

plugins/msgrpc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class Plugin::MSGRPC < Msf::Plugin
2121
#
2222
# The default local hostname that the server listens on.
2323
#
24-
DefaultHost = "127.0.0.1"
24+
DefaultHost ||= "127.0.0.1"
2525

2626
#
2727
# The default local port that the server listens on.
2828
#
29-
DefaultPort = 55552
29+
DefaultPort ||= 55552
3030

3131
#
3232
# ServerPort

0 commit comments

Comments
 (0)