Un nouveau hack pour exempter nos proxies de la limitation de

connexions par seconde.

darcs-hash:20070608135042-9e428-750c11bd86821c5147801d2d8450ed6a79e98507.gz
This commit is contained in:
bobot 2007-06-08 15:50:42 +02:00
parent c9bc130439
commit d90eaa417f

View file

@ -174,7 +174,10 @@ class RequestBase(object):
""" check if someone requesting too much from us """
validuser = self.user.valid
current_id = validuser and self.user.name or self.remote_addr
if not validuser and current_id.startswith('127.'): # localnet
#### DEBUT HACK : Excemption pour nos proxies
if not validuser and (current_id.startswith('127.') or current_id in self.cfg.ip_url_replace.keys()): # localnet
#### FIN DU HACK
return False
current_action = self.form.get('action', ['show'])[0]