This commit is contained in:
Feross Aboukhadijeh 2015-07-08 10:32:41 -07:00
parent 43a425ee57
commit 81c323da2d

View File

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