Merge branch 'develop' into test-set-MM_PORT

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-03-28 13:16:56 -03:00
committed by GitHub
93 changed files with 1053 additions and 26863 deletions

View File

@@ -25,6 +25,10 @@ var Server = function(config, callback) {
server.listen(port, config.address ? config.address : null);
if (config.ipWhitelist instanceof Array && config.ipWhitelist.length == 0) {
console.info("You're using a full whitelist configuration to allow for all IPs")
}
app.use(function(req, res, next) {
var result = ipfilter(config.ipWhitelist, {mode: "allow", log: false})(req, res, function(err) {
if (err === undefined) {