Skip to content

Commit

Permalink
test change
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan96Kaushik committed Nov 11, 2024
1 parent ee8ffdc commit 799dddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const auth = (req, res, next) => {

const clientIP = req.headers['x-forwarded-for']?.split(',')[0] || req.connection?.remoteAddress

console.log('Client IP', clientIP)
console.log('Client IP', clientIP, ipManager.ipAddresses, ipManager.isEnabled)
console.log('Permissions', req.permissions.isAdmin, req.permissions.system.includes('Remote Access'))

if (!req.permissions.isAdmin && !req.permissions.system.includes('Remote Access')) {
if (!ipManager.hasIP(clientIP)) {
Expand Down

0 comments on commit 799dddb

Please sign in to comment.