Fix bad matching against subdomain regex #7

Closed
romansky wants to merge 1 commits from patch-1 into master
Showing only changes of commit 6a9253bfd6 - Show all commits
+1 -1
View File
@@ -33,7 +33,7 @@ function maybe_bounce(req, res, bounce) {
} }
// extract the subdomain, which is the client id // extract the subdomain, which is the client id
var match = hostname.match(/^([a-z0-9]+)[.].*/); var match = hostname.match(/^([a-z0-9]+)[.].*[.].*/);
// not for a specific client // not for a specific client
// pass on to regular server // pass on to regular server