9
0
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:
Anthony Donlon
2025-11-22 00:56:17 +08:00
parent 65648a8cc5
commit 73347bfd93

View File

@@ -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