fix: add missing check for c.youtube.com host
All checks were successful
Invidious CI / build (push) Successful in 6m4s

This commit is contained in:
Fijxu 2025-03-10 13:48:28 -03:00
parent 01ccd55829
commit a4cb5f094c
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -26,7 +26,7 @@ module Invidious::Routes::VideoPlayback
end
# Sanity check, to avoid being used as an open proxy
if !host.matches?(/[\w-]+.googlevideo.com/)
if !host.matches?(/[\w-]+.googlevideo.com/) && !host.matches?(/[\w-]+.c.youtube.com/)
return error_template(400, "Invalid \"host\" parameter.")
end