]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: standard: Add ipv6 support in the function url2sa().
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 21 Mar 2014 13:51:46 +0000 (14:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 31 Mar 2014 07:54:44 +0000 (09:54 +0200)
commit9f95e4084c1ace3c01fa7a892278ac13df477a1c
tree41c18a42db99297061f45dc22163a506e1d7c95d
parent46006bde3c7f76e2200112ec876d016cac2ac2c1
MINOR: standard: Add ipv6 support in the function url2sa().

The function url2sa() converts faster url like http://<ip>:<port> in a
struct sockaddr_storage. This patch add:
 - the https support
 - permit to return the length parsed
 - support IPv6
 - support DNS synchronous resolution only during start of haproxy.

The faster IPv4 convertion way is keeped. IPv6 is slower, because I use
the standard IPv6 parser function.
include/common/standard.h
src/proto_http.c
src/standard.c