fix(mediaflow): include api_password in public IP endpoint URL only

This commit is contained in:
Viren070
2025-06-08 16:24:44 +01:00
parent df546d3a0c
commit 279ff003be
+1 -2
View File
@@ -8,12 +8,11 @@ export class MediaFlowProxy extends BaseProxy {
protected generateProxyUrl(endpoint: string): URL {
const proxyUrl = new URL(this.config.url.replace(/\/$/, ''));
proxyUrl.pathname = `${proxyUrl.pathname === '/' ? '' : proxyUrl.pathname}${endpoint}`;
proxyUrl.searchParams.set('api_password', this.config.credentials);
return proxyUrl;
}
protected getPublicIpEndpoint(): string {
return '/proxy/ip';
return '/proxy/ip?api_password=' + this.config.credentials;
}
protected getPublicIpFromResponse(data: any): string | null {