Skip to content

Commit e051272

Browse files
committed
Fix typo
MSP-11046 `ActiveSupport::OrderedOptions` automatically create an attribute for any missing keys, so when `options.console.resource` was used it would return `nil` instead of the erroring. The correct option name was `options.console.resources` (note the pluralization).
1 parent 225c6da commit e051272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/command/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def driver_options
4747
driver_options['ModulePath'] = options.modules.path
4848
driver_options['Plugins'] = options.console.plugins
4949
driver_options['RealReadline'] = options.console.real_readline
50-
driver_options['Resource'] = options.console.resource
50+
driver_options['Resource'] = options.console.resources
5151
driver_options['XCommands'] = options.console.commands
5252

5353
@driver_options = driver_options

0 commit comments

Comments
 (0)