MINOR: config: Warn if resolvers has no nameservers
authorBen Draut <drautb@gmail.com>
Fri, 13 Apr 2018 21:43:04 +0000 (15:43 -0600)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Apr 2018 13:58:23 +0000 (15:58 +0200)
commit054fbee67a6e7bc7d396027ecc901f88255302cf
treec5cfb2080b1f079a12127416869cdf6da638a81a
parent9a66dfbd6cae9c4908a3d053af23cd041026649f
MINOR: config: Warn if resolvers has no nameservers

Today, a `resolvers` section may be configured without any `nameserver`
directives, which is useless. This implements a warning when such
sections are detected.

[List thread][1].

[1]: https://www.mail-archive.com/haproxy@formilux.org/msg29600.html
src/cfgparse.c