Skip to content

Commit

Permalink
Make IPRange#include?(invalid_ip_address) return false
Browse files Browse the repository at this point in the history
  • Loading branch information
erran committed Apr 2, 2015
1 parent 45118a2 commit 8e04d7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nexpose/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ def include?(subset)
else
true
end
rescue IPAddr::InvalidAddressError
false
end

def hash
Expand Down

0 comments on commit 8e04d7c

Please sign in to comment.