Skip to content
Browse files

make aliases wildcard routes

  • Loading branch information...
1 parent f2b375c commit 649d837e04ce8972a657aa478935a494b90be0ec @janl janl committed Feb 6, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/local-tld-service
  2. +1 −1 package.json
View
2 bin/local-tld-service
@@ -56,7 +56,7 @@ function start_httpd()
if(config[port_m].aliases) {
var aliases = config[port_m].aliases;
for(var alias in aliases) {
- routes[alias + "." + domain + ".dev"] = "127.0.0.1:" + port_m;
+ routes[".*" + alias + "." + domain + ".dev"] = "127.0.0.1:" + port_m;
}
}
}
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "local-tld",
- "version": "3.0.1",
+ "version": "3.0.2",
"description": "Maintain a TLD on localhost for all your projects.",
"main":"bin/local-tld-service",
"dependencies": {

0 comments on commit 649d837

Please sign in to comment.
Something went wrong with that request. Please try again.