]> git.ipfire.org Git - thirdparty/squid.git/commit
Update the http(s)_port directives protocol= parameter
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Jul 2013 02:06:25 +0000 (20:06 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Jul 2013 02:06:25 +0000 (20:06 -0600)
commiteb6ac8089e8b4157aad32f3e4616569746ffe6f3
tree4e90c1c3bde6946e762607f818494121cfa16db0
parentb1b5f5a88c732dd041d43439e19562c3a9269ff7
Update the http(s)_port directives protocol= parameter

... to use AnyP::ProtocolVersion for internal storage instead of opaque
string text.

This both limits the possible parameter values to one of HTTP, HTTP/1.1,
HTTPS or HTTPS/1.1 and ensures that URLs generated from that protocol
parameter value are http:// and https:// URL.
Other values will cause Squid to abort.
src/anyp/PortCfg.cc
src/anyp/PortCfg.h
src/anyp/ProtocolVersion.h
src/cache_cf.cc
src/client_side.cc