Revert "Fix usercounter behind cloudflare"

This reverts commit 9bcceb7e5b.
This commit is contained in:
Ajay
2024-02-27 03:49:03 -05:00
parent f1c5b8a359
commit a54bf556ed
2 changed files with 3 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ export function userCounter(req: Request, res: Response, next: NextFunction): vo
if (Math.random() < 1 / config.userCounterRatio) {
axios({
method: "post",
url: `${config.userCounterURL}/api/v1/addIP?hashedIP=${getIP(req, true)}`,
url: `${config.userCounterURL}/api/v1/addIP?hashedIP=${getIP(req)}`,
httpAgent
}).catch(() => /* instanbul skip next */ Logger.debug(`Failing to connect to user counter at: ${config.userCounterURL}`));
}