diff options
| author | Omar Roth <omarroth@protonmail.com> | 2020-03-04 13:05:10 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2020-03-04 13:06:17 -0500 |
| commit | a117d87f331607864452b85c6066d972ce2cb568 (patch) | |
| tree | 1aa3f84ccde4b57d53be85e6c60df074eb72510b /src | |
| parent | 9dc4f8a1aa7ac183b2eadf73a5f0be35931e8ce3 (diff) | |
| download | invidious-a117d87f331607864452b85c6066d972ce2cb568.tar.gz invidious-a117d87f331607864452b85c6066d972ce2cb568.tar.bz2 invidious-a117d87f331607864452b85c6066d972ce2cb568.zip | |
Skip validation checks for videoplayback, ggpht
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/helpers/utils.cr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr index e43ae71d..7c5edc5c 100644 --- a/src/invidious/helpers/utils.cr +++ b/src/invidious/helpers/utils.cr @@ -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 |
