diff options
| author | kanadeko <[email protected]> | 2017-01-14 06:06:01 -0300 |
|---|---|---|
| committer | kanadeko <[email protected]> | 2017-01-14 06:06:01 -0300 |
| commit | 3b648ab45ea3dbcf41f39f5cc9c6244ea381f6ae (patch) | |
| tree | c235a87604908953a5bcd78fd19620c912030edf /routes | |
| parent | IP whitelisting (diff) | |
| download | host.fuwn.me-3b648ab45ea3dbcf41f39f5cc9c6244ea381f6ae.tar.xz host.fuwn.me-3b648ab45ea3dbcf41f39f5cc9c6244ea381f6ae.zip | |
Frontend ip blocking
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/routes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/routes.js b/routes/routes.js index 2e8005c..e81b733 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -5,7 +5,7 @@ const galleryController = require('../controllers/galleryController') routes.get ('/info', (req, res, next) => { if(!config.privacy.public) - if(!config.privacy.IPs.includes(req.ip)) return res.status(401).send('Not Authorized!') + if(!config.privacy.IPs.includes(req.ip)) return res.status(401).send('not-authorized') return res.json({ maxFileSize: config.uploads.maxsize.slice(0, -2), |