[deconnexion.py] Bittorrent -> 24h
darcs-hash:20100301215939-ffbb2-a8be8c4292f40298f93a70c412f044421767bb2c.gz
This commit is contained in:
parent
bc6f364ba0
commit
454a2776f5
1 changed files with 1 additions and 4 deletions
|
@ -481,9 +481,6 @@ for ip, id_p2p, nombre in fraudeurs:
|
||||||
mail.sendmail(p2p.expediteur, p2p.expediteur, corps)
|
mail.sendmail(p2p.expediteur, p2p.expediteur, corps)
|
||||||
|
|
||||||
# L'adhérent n'est pas encore blacklisté
|
# L'adhérent n'est pas encore blacklisté
|
||||||
if protocole == "Bittorrent":
|
fin = int(time()) + 24*3600
|
||||||
fin = int(time()) + 6*3600
|
|
||||||
else:
|
|
||||||
fin = int(time()) + 24*3600
|
|
||||||
proprio.blacklist(['now', fin, 'autodisc_p2p', hostname])
|
proprio.blacklist(['now', fin, 'autodisc_p2p', hostname])
|
||||||
proprio.save()
|
proprio.save()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue