mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-14 10:55:15 +00:00
api/stream: use dispatcher if passed to istream
This commit is contained in:
parent
6ca377ded6
commit
6c39edbc10
|
@ -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