Add flat list of proxies for geo-bypass

This commit is contained in:
Omar Roth
2018-11-19 10:51:30 -06:00
parent 27488a2295
commit 94c92b68a2
4 changed files with 29 additions and 13 deletions

View File

@@ -116,16 +116,7 @@ spawn do
end
end
proxies = {} of String => Array({ip: String, port: Int32})
if CONFIG.geo_bypass
spawn do
find_working_proxies(BYPASS_REGIONS) do |region, list|
if !list.empty?
proxies[region] = list
end
end
end
end
proxies = PROXY_LIST
before_all do |env|
env.response.headers["X-XSS-Protection"] = "1; mode=block;"