From f366b9a0dcc273bf3c499f370f80df6459fe275b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 2 May 2017 18:06:31 +0200 Subject: [PATCH] Made change to both functions --- server/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/router.js b/server/router.js index d78081a4..5ad2ce9a 100644 --- a/server/router.js +++ b/server/router.js @@ -109,7 +109,7 @@ router.route('/api/mail').post(function(req, res) { router.route('/').get(function(req, res, next){ var subdomain = req.headers['x-forwarded-host'].split("."); - if((subdomain[0] != 'localhost' && !(subdomain.length >= 2 && subdomain[1] == 'localhost'))) { + if((subdomain[0] != 'localhost' && !(subdomain.length >= 2 && (subdomain[1] == 'localhost' || subdomain[1] == 'remote')))) { res.redirect("https://zoff.me"); return; }