mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Made change to both functions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user