diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-19 20:51:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 20:51:58 +0200 |
commit | 63380de9b57e2ad6f2634ce967e16275f418f186 (patch) | |
tree | 645c7f26b72aa75bbe8851911890e0ae95845249 /src/conf_mode | |
parent | a66648596dc126b7bed37d8119ee8faa14909613 (diff) | |
parent | e9dce894eec252ae9224257a26f23c0b70fba4fd (diff) | |
download | vyos-1x-63380de9b57e2ad6f2634ce967e16275f418f186.tar.gz vyos-1x-63380de9b57e2ad6f2634ce967e16275f418f186.zip |
Merge pull request #2013 from sever-sever/T5222
T5222: reverse-proxy fix listen-address template and add smoketest
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/load-balancing-haproxy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/load-balancing-haproxy.py b/src/conf_mode/load-balancing-haproxy.py index 938af6cda..b29fdffc7 100755 --- a/src/conf_mode/load-balancing-haproxy.py +++ b/src/conf_mode/load-balancing-haproxy.py @@ -95,6 +95,8 @@ def verify(lb): if 'address' not in bk_server_conf or 'port' not in bk_server_conf: raise ConfigError(f'"backend {back} server {bk_server} address and port" must be configured!') + if {'send_proxy', 'send_proxy_v2'} <= set(bk_server_conf): + raise ConfigError(f'Cannot use both "send-proxy" and "send-proxy-v2" for server "{bk_server}"') def generate(lb): if not lb: |