fix minor issue typing 'transport remove'
meterpreter > transport remove [-] Error running command transport: NoMethodError undefined method `end_with?' for nil:NilClassbug/bundler_fix
parent
8656add0ad
commit
6a0a410cad
|
@ -739,7 +739,7 @@ class Console::CommandDispatcher::Core
|
|||
print_error("Failed to add transport, please check the parameters")
|
||||
end
|
||||
when 'remove'
|
||||
if !opts[:transport].end_with?('_tcp') && opts[:uri].nil?
|
||||
if opts[:transport] && !opts[:transport].end_with?('_tcp') && opts[:uri].nil?
|
||||
print_error("HTTP/S transport specified without session URI")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue