Disable v6 check for trumpplan, tempfix for purge cache, uncomment

manifest entries
This commit is contained in:
Kyle Drake 2017-05-05 14:27:29 -07:00
parent d0a59f5de1
commit d2fc7a3a16
4 changed files with 12 additions and 7 deletions

View file

@ -67,12 +67,13 @@ def trump_plan_eligible?
ranges = []
if File.exist? trumpplan_path
parsed_ip = IPAddress.parse request.ip
return false if parsed_ip.ipv6? # NOT EXCLUSIVE ENOUGH
File.readlines(trumpplan_path).each do |range|
ranges << IPAddress.parse(range.strip)
end
parsed_ip = IPAddress.parse(request.ip)
matched_ip = false
ranges.each do |range|
if range.include? parsed_ip