]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: replace get_ip_from_hdr2() with http_get_hdr()
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2011 20:35:50 +0000 (21:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Dec 2011 16:33:26 +0000 (17:33 +0100)
commit294c47375631ddf7f26bad02c5f79527cfa091e5
treeb88da21d0ede69c58a05d302fe95faefa48045b6
parentaff79da207145ec20e1e510e255c129482fcd4f7
MEDIUM: http: replace get_ip_from_hdr2() with http_get_hdr()

The new function does not return IP addresses but header values instead,
so that the caller is free to make what it want of them. The conversion
is not quite clean yet, as the previous test which considered that address
0.0.0.0 meant "no address" is still used. A different IP parsing function
should be used to take this into account.
include/proto/proto_http.h
src/backend.c
src/proto_http.c