mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
codacy
This commit is contained in:
@@ -9,7 +9,6 @@ var consts = require('./../constants');
|
||||
var log_green = '\x1B[32m';
|
||||
var log_red = '\x1b[31m';
|
||||
var log_reset = '\x1B[0m';
|
||||
var LOG_AUTH = log_green + 'AUTH: ' + log_reset;
|
||||
var LOG_GRANTED = log_green + 'GRANTED: ' + log_reset;
|
||||
var LOG_DENIED = log_red + 'DENIED: ' + log_reset;
|
||||
|
||||
@@ -22,7 +21,7 @@ function mkopts (opts) {
|
||||
}
|
||||
|
||||
function getRemoteIP (req) {
|
||||
return req.headers['x-forwarded-for'] || req.connection.remoteAddress
|
||||
return req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
||||
}
|
||||
|
||||
function init (env, ctx) {
|
||||
|
||||
Reference in New Issue
Block a user