This patch is similar to the previous one. As an alternative to a
backend name, "from be:" may now also reference a named defaults section
to reuse its unnamed default-server.
behavior for servers defined in the configuration file. This empty value
is mostly useful for dynamic servers created on the CLI which by default
ignore any default-server, which is equivalent to the "none" value.
+ Alternatively, a named defaults section can also be used as an argument
+ to reuse its unnamed default-server.
- srv:[<bename>/]<srvname>
instructs to reuse the settings from the designated backend's server or
named default-server resulting from the processing of all its
if (istlen(be_name)) {
px = proxy_be_by_name(istptr(be_name));
+ if (!px)
+ px = proxy_find_by_name(istptr(be_name), PR_CAP_DEF, 0);
if (!px) {
- ha_alert("from: unknown backend instance '%s'.\n",
+ ha_alert("from: unknown backend or defaults instance '%s'.\n",
istptr(be_name));
err_code = ERR_ALERT | ERR_FATAL;
goto out;