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:
parent
c9bc130439
commit
d90eaa417f
1 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue