mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 04:57:04 +03:00
Fixed getIP module import
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var config = require('./config.js');
|
var config = require('../config.js');
|
||||||
|
|
||||||
module.exports = function getIP(req) {
|
module.exports = function getIP(req) {
|
||||||
return config.behindProxy ? req.headers['x-forwarded-for'] : req.connection.remoteAddress;
|
return config.behindProxy ? req.headers['x-forwarded-for'] : req.connection.remoteAddress;
|
||||||
|
|||||||
Reference in New Issue
Block a user