mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Skip validation checks for videoplayback, ggpht
This commit is contained in:
parent
9dc4f8a1aa
commit
a117d87f33
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ def elapsed_text(elapsed)
|
|||
end
|
||||
|
||||
def make_client(url : URI, region = nil)
|
||||
client = HTTPClient.new(url)
|
||||
# TODO: Migrate any applicable endpoints to QUIC
|
||||
client = HTTPClient.new(url, OpenSSL::SSL::Context::Client.insecure)
|
||||
client.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::UNSPEC
|
||||
client.read_timeout = 10.seconds
|
||||
client.connect_timeout = 10.seconds
|
||||
|
|
Loading…
Reference in a new issue