diff --git a/src/server.js b/src/server.js index f5c0e9a..10da450 100755 --- a/src/server.js +++ b/src/server.js @@ -20,14 +20,13 @@ const basicAuth = require('./basic-auth'); if (consts.ALLOWED_IPS) { app.set('trust proxy', true); - app.use(AccessControl({ mode: 'allow', allows: consts.ALLOWED_IPS, - forceConnectionAddress: true, statusCode: 404 })); } + // Custom Middleware app.use(logging); app.use(basicAuth);