mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: correctly handle server side forcing of deprecated public proxy URLs
This commit is contained in:
@@ -687,7 +687,7 @@ async function validateProxy(
|
||||
const port = Env.FORCE_PUBLIC_PROXY_PORT ?? proxyUrl.port;
|
||||
forcedPublicUrl = `${Env.FORCE_PUBLIC_PROXY_PROTOCOL ?? proxyUrl.protocol}://${Env.FORCE_PUBLIC_PROXY_HOST ?? proxyUrl.hostname}${port ? `:${port}` : ''}`;
|
||||
}
|
||||
forcedPublicUrl = Env.FORCE_PROXY_PUBLIC_URL;
|
||||
forcedPublicUrl = Env.FORCE_PROXY_PUBLIC_URL ?? forcedPublicUrl;
|
||||
proxy.publicUrl = forcedPublicUrl
|
||||
? (encryptString(forcedPublicUrl).data ?? undefined)
|
||||
: (proxy.publicUrl ?? undefined);
|
||||
|
||||
Reference in New Issue
Block a user