mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Only force resolve for www.youtube.com
This commit is contained in:
parent
bf48809b61
commit
2a4b252a9d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ end
|
|||
|
||||
def make_client(url : URI, region = nil)
|
||||
client = HTTPClient.new(url)
|
||||
client.family = CONFIG.force_resolve
|
||||
client.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::UNSPEC
|
||||
client.read_timeout = 15.seconds
|
||||
client.connect_timeout = 15.seconds
|
||||
|
||||
|
|
Loading…
Reference in a new issue