Ajout de plus de DEBUG
This commit is contained in:
parent
bdec6b8603
commit
fc77df4254
1 changed files with 3 additions and 2 deletions
|
@ -306,8 +306,9 @@ def banned():
|
|||
@app.route('/banned_ip')
|
||||
def banned_ip():
|
||||
# Liste des ip pour récupération par babel et plop
|
||||
if get_ip() not in ['10.7.0.39', '10.7.0.254' ,'10.13.0.1', '10.69.8.5' ,'10.69.2.219']:
|
||||
abort(403)
|
||||
if not DEBUG:
|
||||
if get_ip() not in ['10.7.0.39', '10.7.0.254' ,'10.13.0.1', '10.69.8.5' ,'10.69.2.219']:
|
||||
abort(403)
|
||||
|
||||
con = connect_sqlite()
|
||||
cur = con.cursor()
|
||||
|
|
Loading…
Reference in a new issue