diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index c798a7acfe593..97f196461b8c3 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -880,7 +880,7 @@ def cmd_services(*args) columns = [host.address] + col_names.map { |n| service[n].to_s || "" } tbl << columns if set_rhosts - addr = (host.scope ? host.address + '%' + host.scope : host.address ) + addr = (host.scope != "" ? host.address + '%' + host.scope : host.address ) rhosts << addr end end