]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: fix "set-tos" not working in certain configurations
authorLukas Tribus <luky-37@hotmail.com>
Wed, 19 Jun 2013 21:34:41 +0000 (23:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Jun 2013 16:01:31 +0000 (18:01 +0200)
commit2dd1d1a93f70dddc0636f5cb2f5921998dc91e65
tree1ec4916e5171d10cb6f823d8e03db9eda6add9e2
parentdc13c11c1e1e4888227a291e5eac7156e057b27a
BUG/MINOR: http: fix "set-tos" not working in certain configurations

s->req->prod->conn->addr.to.ss_family contains only useful data if
conn_get_to_addr() is called early. If thats not the case (nothing in the
configuration needs the destination address like logs, transparent, ...)
then "set-tos" doesn't work.

Fix this by checking s->req->prod->conn->addr.from.ss_family instead.
Also fix a minor doc issue about set-tos in http-response.
doc/configuration.txt
src/proto_http.c