]> git.kaiwu.me - haproxy.git/commit
MINOR: server: lookup defaults section on "from srv:"
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Nov 2026 08:53:09 +0000 (09:53 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Nov 2026 13:54:31 +0000 (14:54 +0100)
commit5ae25c5fb7a78ab846c57d511dd1a24e47690198
treedc98c3843903ed65e9a772c789460795b0c66be1
parent70e7227a3dd1e54d2875d0e94745fdf47a14ff23
MINOR: server: lookup defaults section on "from srv:"

When defining a server, notation 'from srv:<bename>/<srvname>' can be
specified to inherit from a server or default-server defined in another
backend instance.

Extend this to also look up in defaults sections. This is safe as
proxies and defaults sections cannot have the same name since 3.3.

Without this patch, a named default-server in a named defaults section
is unusable as it cannot be referenced by the existing syntax.
doc/configuration.txt
reg-tests/server/from_keyword.vtc
src/server.c