On applique la sanction "p2p"

darcs-hash:20060126214820-6d78a-b425d302c80f58912e77647bd5680596c0740318.gz
This commit is contained in:
pessoles 2006-01-26 22:48:20 +01:00
parent ab7530d85d
commit b058c48465

View file

@ -457,12 +457,12 @@ for ip, id_p2p, nombre in fraudeurs :
if index : if index :
# adhérent déja blacklisté # adhérent déja blacklisté
fin = localtime(time()+60*60*24) fin = localtime(time()+60*60*24)
proprio.blacklist(( index[0] , ['now',"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'virus',hostname] )) proprio.blacklist(( index[0] , ['now',"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'p2p',hostname] ))
proprio.save() proprio.save()
else : else :
# adhérent non blacklisté # adhérent non blacklisté
fin = localtime(time()+60*60*24) fin = localtime(time()+60*60*24)
proprio.blacklist(['now',"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'virus',hostname]) proprio.blacklist(['now',"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'p2p',hostname])
proprio.save() proprio.save()