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
|
begin
|
||||||
response = HTTP::Client.get "#{CONFIG.invidious_companion.sample.private_url}/healthz"
|
response = HTTP::Client.get "#{CONFIG.invidious_companion.sample.private_url}/healthz"
|
||||||
if response.status_code == 200
|
if response.status_code == 200
|
||||||
@@status = 1
|
|
||||||
check_videoplayback_proxy()
|
check_videoplayback_proxy()
|
||||||
else
|
else
|
||||||
@@status = 0
|
@@status = 0
|
||||||
@ -36,6 +35,8 @@ module BackendInfo
|
|||||||
if exvpp_health.status_code == 200
|
if exvpp_health.status_code == 200
|
||||||
@@status = 2
|
@@status = 2
|
||||||
return
|
return
|
||||||
|
else
|
||||||
|
@@status = 1
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
@@status = 1
|
@@status = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user