mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-28 01:48:26 +00:00
fix: fix checking logic on the backend checker
This commit is contained in:
parent
a44f37563b
commit
8be23eb01d
@ -11,7 +11,6 @@ module BackendInfo
|
||||
begin
|
||||
response = HTTP::Client.get "#{CONFIG.invidious_companion.sample.private_url}/healthz"
|
||||
if response.status_code == 200
|
||||
@@status = 1
|
||||
check_videoplayback_proxy()
|
||||
else
|
||||
@@status = 0
|
||||
@ -36,6 +35,8 @@ module BackendInfo
|
||||
if exvpp_health.status_code == 200
|
||||
@@status = 2
|
||||
return
|
||||
else
|
||||
@@status = 1
|
||||
end
|
||||
rescue
|
||||
@@status = 1
|
||||
|
Loading…
Reference in New Issue
Block a user