mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 09:11:28 +02:00
Disable v6 check for trumpplan, tempfix for purge cache, uncomment
manifest entries
This commit is contained in:
parent
d0a59f5de1
commit
d2fc7a3a16
4 changed files with 12 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue