MEDIUM: resolvers: add support of tcp address on nameserver line.
authorEmeric Brun <ebrun@haproxy.com>
Wed, 7 Apr 2021 14:04:54 +0000 (16:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Apr 2021 12:20:40 +0000 (14:20 +0200)
commitc8f3e45c6a912cdfe382f0966104d7acafb05b7c
tree4e4f8ae164f7d45f7ed930fd4f209e5b0a91a91b
parent98272253d8818161d7aa0518825f4fa84e58d4cd
MEDIUM: resolvers: add support of tcp address on nameserver line.

This patch re-works configuration parsing, it removes the "server"
lines from "resolvers" sections introduced in commit 56fc5d9eb:
MEDIUM: resolvers: add supports of TCP nameservers in resolvers.

It also extends the nameserver lines to support stream server
addresses such as:

resolvers
  nameserver localhost tcp@127.0.0.1:53

Doing so, a part of nameserver's init code was factorized in
function 'parse_resolvers' and removed from 'post_parse_resolvers'.
doc/configuration.txt
src/resolvers.c