MEDIUM: server: add a new init-addr server line setting
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 21 Sep 2016 18:26:16 +0000 (20:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 14:30:47 +0000 (15:30 +0100)
commit25938278b76179a46af79fbdcd51714b2ed54777
tree3aa2b57767ffa76df202c227404ca9375f163744
parenta33ec24683fd2d243aa5ae487f7d201fe7ae0d85
MEDIUM: server: add a new init-addr server line setting

This new setting supports a comma-delimited list of methods used to
resolve the server's FQDN to an IP address. Currently supported methods
are "libc" (use the regular libc's resolver) and "last" (use the last
known valid address found in the state file).

The list is implemented in a 32-bit integer, because each init-addr
method only requires 3 bits. The last one must always be SRV_IADDR_END
(0), allowing to store up to 10 methods in a single 32 bit integer.

Note: the doc is provided at the end of this series.
include/proto/server.h
include/types/server.h
src/server.c