diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 14:44:15 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 14:44:15 +0000 |
commit | 41c6ed7b50603f5232cfe3a59a704e84c0f97d79 (patch) | |
tree | ca2593f34c7598288a8b0145d54ac47107600d10 /lib/custodian/util | |
parent | 1165790e7986d920c149afd0898bfc82a34249a5 (diff) |
Updated to test for more whitespace issues.
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 |