Skip to content

Commit

Permalink
Correct rule name in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joewashear007 committed Mar 27, 2024
1 parent 530822a commit f3c6651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/validate-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export function validateAuthHeader(req) {
const rangeList = {
allowed_ips: config.trustedProxies.map((q) => ipaddr.parseCIDR(q)),
};
/* eslint-disable ban-ts-comment */
/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-ignore : there is an error in the ts definition for the function, but this is valid
var matched = ipaddr.subnetMatch(sender_ip, rangeList, 'fail');
/* eslint-enable ban-ts-comment */
/* eslint-enable @typescript-eslint/ban-ts-comment */
if (matched == 'allowed_ips') {
console.info(`Header Auth Login permitted from ${sender}`);
return true;
Expand Down

0 comments on commit f3c6651

Please sign in to comment.