Permalink
Browse files

Fix the test for having an iface w/an ip matching session_host

ifaces can have multiple addresses, loop through all of 'em.
  • Loading branch information...
1 parent 18a4414 commit cf664eb68f7f3a810dccfc931e2e032831b9562e @egypt egypt committed May 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/modules/post/test/meterpreter.rb
@@ -51,7 +51,9 @@ def test_net_config
res = !!(ifaces and ifaces.length > 0)
res &&= !! ifaces.find { |iface|
- iface.ip == session.session_host
+ iface.addrs.find { |addr|
+ addr == session.session_host
+ }
}
res

0 comments on commit cf664eb

Please sign in to comment.