]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolve: fix init resolving for ring and peers section.
authorEmeric Brun <ebrun@haproxy.com>
Tue, 21 Jul 2020 14:54:36 +0000 (16:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jul 2020 15:59:20 +0000 (17:59 +0200)
commitd3db3846c5d2f3a2a27a6055d28d146838b7189d
treea694d0ac4ab52fe05eed5a6655c2cf8c1fdc0a2a
parent75fd2ff83a081d0be1f512a13f4c2a44808227f9
BUG/MEDIUM: resolve: fix init resolving for ring and peers section.

Reported github issue #759 shows there is no name resolving
on server lines for ring and peers sections.

This patch introduce the resolving for those lines.

This patch adds  boolean a parameter to parse_server function to specify
if we want the function to perform an initial name resolving using libc.

This boolean is forced to true in case of peers or ring section.

The boolean is kept to false in case of classic servers (from
backend/listen)

This patch should be backported in branches where peers sections
support 'server' lines.
include/haproxy/server.h
src/cfgparse-listen.c
src/cfgparse.c
src/server.c
src/sink.c