From ded55229b7845f9693d58c2581d5984f35f9ca00 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 15 Mar 2024 06:34:19 +0200 Subject: [PATCH] remove unnecessary --- files/routes/users.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index a9bc7fd20..5e4dcdb1f 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1334,13 +1334,6 @@ if KOFI_TOKEN: verification_token = data['verification_token'] if verification_token != KOFI_TOKEN: abort(400) - ip = request.headers.get('CF-Connecting-IP') - if ip not in {'104.45.229.18', '137.117.16.235', '20.245.178.101'}: - print(STARS, flush=True) - print(f'/kofi fail: {ip}') - print(STARS, flush=True) - abort(400) - id = data['kofi_transaction_id'] created_utc = int(time.mktime(time.strptime(data['timestamp'].split('.')[0], "%Y-%m-%dT%H:%M:%SZ"))) type = data['type']