]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: resolvers: move the resolv.conf parser in parse_resolv_conf()
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 5 May 2022 15:36:09 +0000 (17:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 5 May 2022 15:38:48 +0000 (17:38 +0200)
commit73edfe402e8edbe95942c2ee236775a9e658938d
tree57926e85e933a7973ab8aa45470c06f1de3f4e63
parent106bd29dd01b018579e8bd714b98fa45e6b4bbc9
MINOR: resolvers: move the resolv.conf parser in parse_resolv_conf()

Move the resolv.conf parser from the cfg_parse_resolvers so it could be
used separately.

Some changes were made in the memprintf in order to use a char **
instead of a char *. Also the variable is tested before each memprintf
so could skip them if no warnmsg nor errmsg were set.
src/resolvers.c