mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 05:27:21 +00:00
Connect to api.invidious.io with https
This commit is contained in:
parent
09f7e38eed
commit
cb525af0a2
@ -412,7 +412,7 @@ end
|
|||||||
|
|
||||||
def fetch_random_instance
|
def fetch_random_instance
|
||||||
begin
|
begin
|
||||||
instance_api_client = HTTP::Client.new("api.invidious.io")
|
instance_api_client = HTTP::Client.new(URI.parse("https://api.invidious.io"))
|
||||||
|
|
||||||
# Timeouts
|
# Timeouts
|
||||||
instance_api_client.connect_timeout = 10.seconds
|
instance_api_client.connect_timeout = 10.seconds
|
||||||
|
Loading…
Reference in New Issue
Block a user