mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add flat list of proxies for geo-bypass
This commit is contained in:
parent
27488a2295
commit
94c92b68a2
4 changed files with 29 additions and 13 deletions
|
@ -10,4 +10,3 @@ db:
|
|||
dbname: invidious
|
||||
full_refresh: false
|
||||
https_only: false
|
||||
geo_bypass: true
|
||||
|
|
|
@ -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;"
|
||||
|
|
|
@ -15,7 +15,6 @@ class Config
|
|||
https_only: Bool?,
|
||||
hmac_key: String?,
|
||||
full_refresh: Bool,
|
||||
geo_bypass: Bool,
|
||||
domain: String?,
|
||||
})
|
||||
end
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue