api/stream: use dispatcher if passed to istream

This commit is contained in:
jj 2024-12-04 18:17:07 +00:00
parent 6ca377ded6
commit 6c39edbc10
No known key found for this signature in database

View file

@ -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 })
}