diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-29 22:49:00 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-05-29 23:26:24 +0200 |
commit | a2f0b25452c67528077f343d75de09d038e97fee (patch) | |
tree | 75a8604831bf636af88988ad4df26e0fdd2fde35 /data | |
parent | 2980eb0ad527f0ef0f1527c0ea97842ca2a8ede5 (diff) | |
download | vyos-1x-a2f0b25452c67528077f343d75de09d038e97fee.tar.gz vyos-1x-a2f0b25452c67528077f343d75de09d038e97fee.zip |
reverse-proxy: T5231: better mark v4v6 listen any address
haproxy supports both ":::80 v4v6" and "[::]:80 v4v6" as listen statement,
where the later one is more humand readable. Both act in the same way.
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/load-balancing/haproxy.cfg.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/load-balancing/haproxy.cfg.j2 b/data/templates/load-balancing/haproxy.cfg.j2 index 797bf17e7..b786a58f8 100644 --- a/data/templates/load-balancing/haproxy.cfg.j2 +++ b/data/templates/load-balancing/haproxy.cfg.j2 @@ -62,7 +62,7 @@ frontend {{ front }} bind {{ address | bracketize_ipv6 }}:{{ front_config.port }} {{ ssl_directive }} {{ ssl_front | join(' ') }} {% endfor %} {% else %} - bind :::{{ front_config.port }} v4v6 {{ ssl_directive }} {{ ssl_front | join(' ') }} + bind [::]:{{ front_config.port }} v4v6 {{ ssl_directive }} {{ ssl_front | join(' ') }} {% endif %} {% if front_config.redirect_http_to_https is vyos_defined %} http-request redirect scheme https unless { ssl_fc } |