mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-24 12:08:55 +01:00
api/stream: use dispatcher if passed to istream
This commit is contained in:
parent
6ca377ded6
commit
6c39edbc10
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export function getInternalStream(id) {
|
||||||
export function createInternalStream(url, obj = {}) {
|
export function createInternalStream(url, obj = {}) {
|
||||||
assert(typeof url === 'string');
|
assert(typeof url === 'string');
|
||||||
|
|
||||||
let dispatcher;
|
let dispatcher = obj.dispatcher;
|
||||||
if (obj.requestIP) {
|
if (obj.requestIP) {
|
||||||
dispatcher = freebind?.dispatcherFromIP(obj.requestIP, { strict: false })
|
dispatcher = freebind?.dispatcherFromIP(obj.requestIP, { strict: false })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue