print kofi IP

master
Aevann 2023-04-27 18:09:19 +02:00
parent 3576dec07f
commit c50d97a343
1 changed files with 1 additions and 0 deletions

View File

@ -1375,6 +1375,7 @@ if KOFI_TOKEN:
@app.post("/kofi")
@limiter.exempt
def kofi():
print(request.headers.get('CF-Connecting-IP'), flush=True)
data = json.loads(request.values['data'])
verification_token = data['verification_token']
if verification_token != KOFI_TOKEN: abort(400)