diff options
Diffstat (limited to 'lib/custodian/util')
| -rw-r--r-- | lib/custodian/util/bytemark.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/util/bytemark.rb b/lib/custodian/util/bytemark.rb index 99079a1..c23b082 100644 --- a/lib/custodian/util/bytemark.rb +++ b/lib/custodian/util/bytemark.rb @@ -20,7 +20,7 @@ module Custodian        # These are used to test if an alert refers to a machine outwith our        # network.        # -      BYTEMARK_RANGES = %w(80.68.80.0/20 89.16.160.0/19 212.110.160.0/19 46.43.0.0/18 91.223.58.0/24 213.138.96.0/19 5.153.224.0/21 5.28.58.0/24 2001:41c8::/29 2001:41c9::/32).collect{|i| IPAddr.new(i)} +      BYTEMARK_RANGES = %w(80.68.80.0/20 89.16.160.0/19 212.110.160.0/19 46.43.0.0/18 91.223.58.0/24 213.138.96.0/19 5.153.224.0/21 5.28.58.0/24 2001:41c8::/29 2001:41c9::/32).collect { |i| IPAddr.new(i) }        # @@ -29,7 +29,7 @@ module Custodian        def self.inside?(target)          inside = false -        if  BYTEMARK_RANGES.any?{|range| range.include?(IPAddr.new(target))} +        if  BYTEMARK_RANGES.any? { |range| range.include?(IPAddr.new(target)) }            inside = true          end  | 
