Redirect www subdomain to landingPage if the tunnel does not exist #149

Closed
danielml3 wants to merge 1 commits from master into master
+5
View File
@@ -134,6 +134,11 @@ export default function(opt) {
const client = manager.getClient(clientId);
if (!client) {
if (clientId === 'www') {
res.writeHead(301, {'Location' : landingPage});
res.end();
return;
}
res.statusCode = 404;
res.end('404');
return;