mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-26 17:46:06 +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 = {}) {
|
||||
assert(typeof url === 'string');
|
||||
|
||||
let dispatcher;
|
||||
let dispatcher = obj.dispatcher;
|
||||
if (obj.requestIP) {
|
||||
dispatcher = freebind?.dispatcherFromIP(obj.requestIP, { strict: false })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue