Skip to content

Commit

Permalink
mmm lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
yesBad committed Dec 12, 2024
1 parent 32d2f7d commit 36c464a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ app.get('/', requiresAuth(), (req, res) => {
try {
if (!req?.oidc?.accessToken) return;
if (req.headers["x-real-ip"] == req.headers["x-forwarded-for"]) {
console.log(`[${req.headers["x-real-ip"]}] ${req?.oidc?.idTokenClaims?.preferred_username} visited /`);
let arr = []; arr.push([req?.oidc?.idTokenClaims?.preferred_username, req.headers["x-real-ip"]]);
console.log(`[${req.headers["x-real-ip"]}] ${req?.oidc?.idTokenClaims?.preferred_username.toLowerCase()} visited /`);
let arr = []; arr.push([req?.oidc?.idTokenClaims?.preferred_username.toLowerCase(), req.headers["x-real-ip"]]);
updateTraefikConfig(arr);
res.redirect(redirectee);
}
Expand Down

0 comments on commit 36c464a

Please sign in to comment.