Skip to content

best way to save what you love

api/stream: use dispatcher if passed to istream

jj6c39edbc1034
diff --git a/api/src/stream/manage.js b/api/src/stream/manage.js
index de4a2cf6..79b5c1db 100644
--- a/api/src/stream/manage.js
+++ b/api/src/stream/manage.js
@@ -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 })
}