aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorkanadeko <[email protected]>2017-01-14 06:06:01 -0300
committerkanadeko <[email protected]>2017-01-14 06:06:01 -0300
commit3b648ab45ea3dbcf41f39f5cc9c6244ea381f6ae (patch)
treec235a87604908953a5bcd78fd19620c912030edf /routes
parentIP whitelisting (diff)
downloadhost.fuwn.me-3b648ab45ea3dbcf41f39f5cc9c6244ea381f6ae.tar.xz
host.fuwn.me-3b648ab45ea3dbcf41f39f5cc9c6244ea381f6ae.zip
Frontend ip blocking
Diffstat (limited to 'routes')
-rw-r--r--routes/routes.js2
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),