From 6453144d9771991e1a1934c1156f8b2aea31876d Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Thu, 14 May 2026 16:24:18 +0200 Subject: [PATCH] last thing to make the fake cloudflare page look 100% real --- src/index.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.mjs b/src/index.mjs index 8acd917..6f9141b 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -266,6 +266,11 @@ function buildGatePage(req) { 'Bad Gateway', 'Bad Gateway' ); + // Patch the to include the domain — matches real Cloudflare behaviour + html = html.replace( + '<title>502: Bad Gateway', + `${cfg.main.url.domain} | 502: Bad gateway` + ); html = html.replace('', gateLoginInjection + '\n'); return html; }