Fix bad matching against subdomain regex #7

Closed
romansky wants to merge 1 commits from patch-1 into master
+1 -1
View File
@@ -33,7 +33,7 @@ function maybe_bounce(req, res, bounce) {
}
// 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
// pass on to regular server