added banned ip

This commit is contained in:
cubedro
2015-07-31 00:13:11 +03:00
parent 5f21a82a3e
commit a9bfb43a51
3 changed files with 11 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
var geoip = require('geoip-lite');
var _ = require('lodash');
var trusted = require('./utils/config');
var trusted = require('./utils/config').trusted;
var MAX_HISTORY = 40;
var MAX_INACTIVE_TIME = 1000*60*60*4;

View File

@@ -18,4 +18,11 @@ var trusted = [
'::ffff:127.0.0.1',
];
module.exports = trusted;
var banned = [
'198.48.150.206'
];
module.exports = {
trusted: trusted,
banned: banned
};