mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
editor/server: fix extraction location from cf ray
This commit is contained in:
@@ -39,7 +39,7 @@ def fill_cf_template_params(params: dict):
|
|||||||
|
|
||||||
cf_status: dict = params.get('cloudflare_status', {})
|
cf_status: dict = params.get('cloudflare_status', {})
|
||||||
if not cf_status.get('location'):
|
if not cf_status.get('location'):
|
||||||
loc = get_cf_location()
|
loc = get_cf_location(ray_id_loc[-3:])
|
||||||
if loc:
|
if loc:
|
||||||
cf_status['location'] = loc
|
cf_status['location'] = loc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user