Skip to content

Commit 02afc3a

Browse files
committed
Add lines for no IPv4/IPv6 routes
1 parent 79b92cc commit 02afc3a

File tree

1 file changed

+5
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+5
-1
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,11 @@ def cmd_route(*args)
943943
print(tbl_ipv6.to_s) if tbl_ipv6.rows.length > 0
944944

945945
if (tbl_ipv4.rows.length + tbl_ipv6.rows.length) < 1
946-
print_status('There are currently no routes defined.')
946+
print_status("There are currently no routes defined.")
947+
elsif (tbl_ipv4.rows.length < 1) && (tbl_ipv6.rows.length > 0)
948+
print_status("There are currently no IPv4 routes defined.")
949+
elsif (tbl_ipv4.rows.length > 0) && (tbl_ipv6.rows.length < 1)
950+
print_status("There are currently no IPv6 routes defined.")
947951
end
948952

949953
else

0 commit comments

Comments
 (0)