remove unnecessary
parent
71630d5981
commit
ded55229b7
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue