mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Corrected ip addresses comparison
This commit is contained in:
parent
e13caf2518
commit
5716a536ca
1 changed files with 2 additions and 2 deletions
|
@ -19,13 +19,13 @@ module WhiteIp::WhiteIpConcern
|
|||
def select_ipv4(ip)
|
||||
return [] if check_ip4(ip).blank?
|
||||
|
||||
select { |white_ip| check_ip4(white_ip.ipv4) == check_ip4(ip) }
|
||||
select { |white_ip| check_ip4(white_ip.ipv4) === check_ip4(ip) }
|
||||
end
|
||||
|
||||
def select_ipv6(ip)
|
||||
return [] if check_ip6(ip).blank?
|
||||
|
||||
select { |white_ip| check_ip6(white_ip.ipv6) == check_ip6(ip) }
|
||||
select { |white_ip| check_ip6(white_ip.ipv6) === check_ip6(ip) }
|
||||
end
|
||||
|
||||
def csv_header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue