mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
readme
This commit is contained in:
parent
43a425ee57
commit
81c323da2d
@ -125,6 +125,9 @@ var server = new Server({
|
||||
|
||||
var allowed = (infoHash === 'aaa67059ed6bd08362da625b3ae77f6f4a075aaa')
|
||||
cb(allowed)
|
||||
|
||||
// In addition to returning a boolean (`true` for allowed, `false` for disallowed),
|
||||
// you can return an `Error` object to disallow and provide a custom reason.
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user