mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: check URL path when using stremthru for proxy check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user