stream/manage: add missing default API_PORT value for internal stream URLs (#463)

This commit is contained in:
jsopn 2024-04-28 18:19:05 +07:00 committed by GitHub
parent 78288b8fac
commit 331f055367
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,7 @@ export function createInternalStream(url, obj = {}) {
controller: new AbortController()
};
let streamLink = new URL('/api/istream', `http://127.0.0.1:${process.env.API_PORT}`);
let streamLink = new URL('/api/istream', `http://127.0.0.1:${process.env.API_PORT || 9000}`);
streamLink.searchParams.set('t', streamID);
return streamLink.toString();
}