Only force resolve for www.youtube.com

pull/836/head
Omar Roth 5 years ago
parent bf48809b61
commit 2a4b252a9d
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

@ -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…
Cancel
Save