mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-12 05:07:43 +02:00
Only force resolve for www.youtube.com
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user