vhost.m4: Refactor virtual host routing some more.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 6 Mar 2014 01:54:33 +0000 (01:54 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 6 Mar 2014 02:04:05 +0000 (02:04 +0000)
commit37a602dbb7e06f825e56825576ffd8231008a693
treeac660a85879b01b59db361d6bc89ea1eae62a386
parent53b7804d5f7cb948217269e92d9d8bf548f73201
vhost.m4: Refactor virtual host routing some more.

Move the does-this-key-exist condition out of the `VHOST' macro and
into `VHOST_FILTER'.  Alas, this means we must repeat the logic for
the `virtual_route' router.  But we can take the opportunity to elide
the unnecessary existence checks for the domain keys we just tested in
the router conditions.

Also, switch the arguments to `VHOST_FILTER' around.  I think they
make more sense like this.
vhost.m4