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