Skip to content

Commit 474f1ff

Browse files
committed
FIX: handle filters appropriately.
1 parent d502fb3 commit 474f1ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ class Server extends EventEmitter {
175175
const self = this
176176

177177
if (this._filter) {
178-
const { allowed, info } = await this._filter(params.info_hash, params)
179-
if (!allowed) return info
178+
const notAllowed = await this._filter(params.info_hash, params)
179+
if (notAllowed) return notAllowed
180180
}
181181

182182
const swarm = await this.getOrCreateSwarm(params)

0 commit comments

Comments
 (0)