diff options
| -rw-r--r-- | routes/users.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts index 64659a01..19c014c9 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -30,7 +30,7 @@ const verifyRecaptcha = async (response, req?) => { if (!secret) return true; // Skip captcha for Tor users accessing via .onion - const host = req?.headers?.["host"] || ""; + const host = req?.headers?.["x-forwarded-host"] || req?.headers?.["host"] || ""; if (host.endsWith(".onion")) return true; // Skip captcha for allowlisted User-Agents (prefix match) |
