From b8ed88ac9ad8781f54aef5d8219cb28c883d816e Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Thu, 13 Apr 2023 12:35:51 -0400 Subject: [PATCH] Use cf-ray as index --- src/api/status.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/status.ts b/src/api/status.ts index 268cc7e..adf9f21 100644 --- a/src/api/status.ts +++ b/src/api/status.ts @@ -161,6 +161,9 @@ const writeDataPoint = (event: FetchEvent, language: string | undefined, nsfw: b ], doubles: [ nsfw ? 1 : 0 /* NSFW media = 1, No NSFW Media = 0 */ + ], + indexes: [ + event.request.headers.get('cf-ray') ?? '', /* CF Ray */ ] }); }