From 89a5c3b485765a030343fe5bf0a966ba4d11c35a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 16 Oct 2017 22:19:15 +0200 Subject: [PATCH] Included fb.zoff.me --- server/routing/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routing/router.js b/server/routing/router.js index 45641508..f06548d0 100644 --- a/server/routing/router.js +++ b/server/routing/router.js @@ -15,7 +15,7 @@ router.route('/:channel_name').get(function(req, res, next){ try{ var url = req.headers['x-forwarded-host'] ? req.headers['x-forwarded-host'] : req.headers.host.split(":")[0]; var subdomain = req.headers['x-forwarded-host'] ? req.headers['x-forwarded-host'].split(".") : req.headers.host.split(":")[0].split("."); - if(url != "zoff.me" && url != "remote.zoff.me" && url != "remote.localhost" && url != "localhost") { + if(url != "zoff.me" && url != "remote.zoff.me" && url != "fb.zoff.me" && url != "remote.localhost" && url != "localhost") { res.redirect("https://zoff.me"); return; } @@ -191,7 +191,7 @@ router.route('/').get(function(req, res, next){ try{ var url = req.headers['x-forwarded-host'] ? req.headers['x-forwarded-host'] : req.headers.host.split(":")[0]; var subdomain = req.headers['x-forwarded-host'] ? req.headers['x-forwarded-host'].split(".") : req.headers.host.split(":")[0].split("."); - if(url != "zoff.me" && url != "remote.zoff.me" && url != "remote.localhost" && url != "localhost") { + if(url != "zoff.me" && url != "remote.zoff.me" && url != "fb.zoff.me" && url != "remote.localhost" && url != "localhost") { res.redirect("https://zoff.me"); return; }