From 7e4e98887bc1282e1463ffc4b83f26056ca24a0b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 26 Sep 2022 04:39:03 +0200 Subject: [PATCH] remove proxies from cloudflare --- files/routes/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 43ac06bfd..e13582386 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -429,7 +429,7 @@ def admin_home(v): if v.admin_level > 2: if CF_ZONE == 'blahblahblah': response = 'high' - else: response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS, timeout=5, proxies=proxies).json()['result']['value'] + else: response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS, timeout=5).json()['result']['value'] under_attack = response == 'under_attack' gitref = admin_git_head() @@ -498,7 +498,7 @@ def purge_cache(v): @app.post("/admin/under_attack") @admin_level_required(3) def under_attack(v): - response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS, timeout=5, proxies=proxies).json()['result']['value'] + response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS, timeout=5).json()['result']['value'] if response == 'under_attack': ma = ModAction(