diff options
| author | Michael Pardatscher <michael.pardatscher@studyly.com> | 2026-09-25 17:45:56 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-09-26 09:46:16 +0200 |
| commit | ba43108f552fc3f6e7ef9ba8741c7612d948fb2c (patch) | |
| tree | f6caddb101791dfbd8b0fb20f98dfd5091b88459 /src | |
| parent | 733c07f3f9da8bca45f97abbd4521fc61b4a3812 (diff) | |
| download | vyos-1x-ba43108f552fc3f6e7ef9ba8741c7612d948fb2c.tar.gz vyos-1x-ba43108f552fc3f6e7ef9ba8741c7612d948fb2c.zip | |
haproxy: T8977: allow a listen-address that is not assigned to an interface
A listen-address had to be present on an interface at commit time, which
refused a perfectly valid configuration: such an address is commonly
supplied by a failover mechanism only after the commit, and the kernel
permits binding it as soon as the non-local bind sysctl is set. That is
accepted now.
Co-authored-by: Christian Breunig <christian@breunig.cc>
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_mode/load-balancing_haproxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/load-balancing_haproxy.py b/src/conf_mode/load-balancing_haproxy.py index f95d05151..3a7fa7f01 100644 --- a/src/conf_mode/load-balancing_haproxy.py +++ b/src/conf_mode/load-balancing_haproxy.py @@ -81,7 +81,7 @@ def verify(lb): if '%' in listen_address: listen_address, *_ = listen_address.split('%', maxsplit=1) - if not is_addr_assigned(listen_address): + if not is_addr_assigned(listen_address, allow_nonlocal=True): raise ConfigError( f'listen-address "{listen_address}" not assigned on any interface!' ) |
