TrackerZero: ignore "announce" action if the plugin is disabled by its settings
This commit is contained in:
parent
de5a9ff67b
commit
142f5862df
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ class TrackerZero(object):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def actionAnnounce(self, file_request, params):
|
def actionAnnounce(self, file_request, params):
|
||||||
|
if len(self.enabled_addresses) < 1:
|
||||||
|
file_request.actionUnknown("announce", params)
|
||||||
|
return
|
||||||
|
|
||||||
time_started = time.time()
|
time_started = time.time()
|
||||||
s = time.time()
|
s = time.time()
|
||||||
# Backward compatibility
|
# Backward compatibility
|
||||||
|
|
Loading…
Reference in a new issue