]> 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 22:23:39 +0000 (16:23 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 25 Jul 2011 22:23:39 +0000 (16:23 -0600)
commit005987cd5ec70d6db767582af988d4bcaeb148e0
tree700ed1145c45fe80035a6f41832fd02dd22f5dba
parent5571b51a828ef5d64a32dbad227294747a7b018e
parent90216ca634496a29ba20d54036134a8672159d98
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/client_side.cc