lib/rex/socket/switch_board.rb in librex-0.0.29 vs lib/rex/socket/switch_board.rb in librex-0.0.30

- old
+ new

@@ -188,9 +188,15 @@ # Flushes all established routes. # def flush_routes _init + # Remove each of the individual routes so the comms don't think they're + # still routing after a flush. + self.routes.each { |r| + r.comm.routes.delete("#{r.subnet}/#{r.netmask}") + } + # Re-initialize to an empty array self.routes = Array.new end # # Checks to see if a route already exists for the supplied subnet and