fix: check URL path when using stremthru for proxy check

This commit is contained in:
Viren070
2025-08-24 15:38:35 +01:00
parent 8c79eeff92
commit db003db7d5
+5 -1
View File
@@ -22,7 +22,11 @@ class Proxifier {
}
const streamUrl = new URL(stream.url);
const proxyUrl = new URL(proxy.url);
if (streamUrl.host === proxyUrl.host) {
if (
streamUrl.host === proxyUrl.host &&
// check for proxy endpoint for stremthru, not needed for mediaflow as all mediaflow links are proxied
(proxy.id === 'mediaflow' || streamUrl.pathname.includes('/v0/proxy'))
) {
stream.proxied = true;
return false;
}