]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: Make 'default-server' support 'source' keyword.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 17 Mar 2017 14:33:50 +0000 (15:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Mar 2017 12:37:01 +0000 (14:37 +0200)
commitdba9707713eb49a39b218f331c252fb09494c566
tree14832f8e6962a84300460c2ce22ff2e3687af3a1
parent22f41a2d23d8a2fb0a48f0f9c9d97438d9e9a905
MINOR: server: Make 'default-server' support 'source' keyword.

Before this patch, only 'server' directives could support 'source' setting.
This patch makes also 'default-server' directives support this setting.

To do so, we had to extract the code responsible of parsing 'source' setting
arguments from parse_server() function and make it callable both
as 'default-server' and 'server' 'source' setting parser. So, the code is mostly
the same as before except that before allocating anything for 'struct conn_src'
members, we must free the memory previously allocated.

Should not break anything.
src/server.c