We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a425e commit 81c323dCopy full SHA for 81c323d
README.md
@@ -125,6 +125,9 @@ var server = new Server({
125
126
var allowed = (infoHash === 'aaa67059ed6bd08362da625b3ae77f6f4a075aaa')
127
cb(allowed)
128
+
129
+ // In addition to returning a boolean (`true` for allowed, `false` for disallowed),
130
+ // you can return an `Error` object to disallow and provide a custom reason.
131
})
132
133
0 commit comments