Skip to content

Commit 621568b

Browse files
David MaloneyDavid Maloney
authored andcommitted
Another Error Type needs caught
Different systems throw a different error Need to rescue that error too
1 parent 6976bfd commit 621568b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/socket/range_walker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def parse(parseme)
100100
end
101101
begin
102102
Rex::Socket.getaddress(ip_part) # This allows for "www.metasploit.com/24" which is fun.
103-
rescue Resolv::ResolvError, ::SocketError
103+
rescue Resolv::ResolvError, ::SocketError, Errno::ENOENT
104104
return false # Can't resolve the ip_part, so bail.
105105
end
106106

0 commit comments

Comments
 (0)