mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
standard
This commit is contained in:
parent
65c02dd153
commit
afcb6df085
@ -656,7 +656,7 @@ Server.prototype._onRequest = function (params, cb) {
|
|||||||
|
|
||||||
Server.prototype._onAnnounce = function (params, cb) {
|
Server.prototype._onAnnounce = function (params, cb) {
|
||||||
var self = this
|
var self = this
|
||||||
|
|
||||||
if (self._filter) {
|
if (self._filter) {
|
||||||
self._filter(params.info_hash, params, function (err) {
|
self._filter(params.info_hash, params, function (err) {
|
||||||
// Presence of `err` means that this announce request is disallowed
|
// Presence of `err` means that this announce request is disallowed
|
||||||
@ -673,7 +673,7 @@ Server.prototype._onAnnounce = function (params, cb) {
|
|||||||
announce(swarm)
|
announce(swarm)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get existing swarm, or create one if one does not exist
|
// Get existing swarm, or create one if one does not exist
|
||||||
function getOrCreateSwarm (cb) {
|
function getOrCreateSwarm (cb) {
|
||||||
self.getSwarm(params.info_hash, function (err, swarm) {
|
self.getSwarm(params.info_hash, function (err, swarm) {
|
||||||
|
Loading…
Reference in New Issue
Block a user