diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-06-23 18:45:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 18:45:17 +0300 |
| commit | 105c2470df751f9bff280255506640e63204e3bb (patch) | |
| tree | 18e25c127bf66f6316e91cc8646718ff6f34a9a1 /src | |
| parent | 4e74f21299c77a35115a61908a2c84e390e1f0d1 (diff) | |
| parent | 4f550fc5184f7d583f5976e801e9cae4d06e0cb6 (diff) | |
| download | vyos-1x-105c2470df751f9bff280255506640e63204e3bb.tar.gz vyos-1x-105c2470df751f9bff280255506640e63204e3bb.zip | |
Merge pull request #5226 from indrajitr/haproxy-websocket
haproxy: T8931: Improve WebSocket support for HAProxy
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_mode/load-balancing_haproxy.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf_mode/load-balancing_haproxy.py b/src/conf_mode/load-balancing_haproxy.py index 0f31880ba..f95d05151 100644 --- a/src/conf_mode/load-balancing_haproxy.py +++ b/src/conf_mode/load-balancing_haproxy.py @@ -149,7 +149,12 @@ def verify(lb): for group in ['service', 'backend']: for config_name, config in lb[group].items(): if 'http_response_headers' in config and config['mode'] != 'http': - raise ConfigError(f'{group} {config_name} must be set to http mode to use http_response_headers!') + raise ConfigError(f'{group} {config_name} must be set to http mode to use http-response headers!') + + # Check if http-server-close is configured in any backend where mode != http + for config_name, config in lb['backend'].items(): + if 'http_server_close' in config and config['mode'] != 'http': + raise ConfigError(f'backend {config_name} must be set to http mode to use http-server-close!') def generate(lb): |
