]> git.ipfire.org Git - thirdparty/squid.git/commit
Regression fix: vhost and defaultsite causing vport to be ignored
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 25 Jul 2011 01:38:40 +0000 (19:38 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 25 Jul 2011 01:38:40 +0000 (19:38 -0600)
commit90216ca634496a29ba20d54036134a8672159d98
treec4b139a1a942c26562f21a2407c6a2d1a0b09d97
parent5571b51a828ef5d64a32dbad227294747a7b018e
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