]> git.ipfire.org Git - thirdparty/squid.git/commit
Rationalize the default httpd_accel_surrogate_id
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 5 Mar 2010 02:07:24 +0000 (15:07 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 5 Mar 2010 02:07:24 +0000 (15:07 +1300)
commitb2b40d8c69cf988f8e4fb5a545464f9ddcee7c67
treef9d65af95f4f40122907724ebeb0e29d4dad824e
parent3d9e71e6dea25fc9c83ef7c11fed9f3943bbcba6
Rationalize the default httpd_accel_surrogate_id

Prevents more posibilities for data leakage by making the default
surrogate ID based on visible_hostname (public FQDN for the proxy).

Now that Surrogate_Capability: header is sent by default in accelerator
environments it makes more sense to default it to a value fairly unique
or at least restricted to that local administrative domain.

When visible_hostname is setup correctly (either automatic or manual)
each stand-alone squid install should have a unique ID. Groups of proxies
sharing work for a domain should also be by default sharing an ID and
thus sharing the override behavior.

When visible_hostname is unavailable it will retain the old default of
'unset-id'.
src/cache_cf.cc
src/cf.data.pre