mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(mediaflow): include api_password in public IP endpoint URL only
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user