From f56afcdd5cdd5309755f914373a7ae31949aada5 Mon Sep 17 00:00:00 2001 From: Pitu Date: Wed, 1 Feb 2017 19:52:29 -0300 Subject: [PATCH] Something crawl told me to do --- lolisafe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lolisafe.js b/lolisafe.js index 778a705..0a500ae 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -13,7 +13,7 @@ fs.existsSync('./' + config.logsFolder) || fs.mkdirSync('./' + config.logsFolder fs.existsSync('./' + config.uploads.folder) || fs.mkdirSync('./' + config.uploads.folder) fs.existsSync('./' + config.uploads.folder + '/thumbs') || fs.mkdirSync('./' + config.uploads.folder + '/thumbs') -safe.enable('trust proxy') +safe.set('trust proxy', 1) safe.use(bodyParser.urlencoded({ extended: true })) safe.use(bodyParser.json())