]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] config: rework the IPv4/IPv6 address parser to support host-only addresses
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Mar 2011 14:31:53 +0000 (15:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Mar 2011 18:01:18 +0000 (19:01 +0100)
commitfab5a4372676bf88e884a447172ad1d28fba7f5a
treeee6c6a26c3fd565671be97f5967d5e790dd5abd2
parent64e9c90e69cd8b0fe8dd60024ccbe528705fbd8f
[MEDIUM] config: rework the IPv4/IPv6 address parser to support host-only addresses

The parser now distinguishes between pure addresses and address:port. This
is useful for some config items where only an address is required.

Raw IPv6 addresses are now parsed, but IPv6 host name resolution is still not
handled (gethostbyname does not resolve IPv6 names to addresses).
include/common/standard.h
src/cfgparse.c
src/standard.c