]> git.ipfire.org Git - thirdparty/squid.git/commit
Regression fix: vhost and defaultsite causing vport to be ignored
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 22 Jul 2011 13:36:58 +0000 (01:36 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 22 Jul 2011 13:36:58 +0000 (01:36 +1200)
commit5463e4b97c243b7a671c8aabd73638a511ee88c2
tree9c62846d46ac908d7685bfa25777d35e66e37104
parentda03a7e01d9a222c8173893c7184aefd6d746aa0
Regression fix: vhost and defaultsite causing vport to be ignored

Instead of dropping it completely we should be sanely combining them like
Squid-2 does for most cases. This appears to have been lost while removing
the getmyHostname() from the process and reducing the
prepareTransparentUrl code.

This fix makes vport apply even if vhost was used. It will modify the
Host: header contents according to the documented vport semantics.

This fix makes vport apply even if defaultsite= was used. It will append
the specified port to the domain name given. Domains with port attached
are not supported and will produce invalid URLs.
TODO: detect this case while parsing the initial config and warn.
src/cf.data.pre
src/client_side.cc