diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-13 12:34:11 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-13 12:34:37 +0200 |
commit | 377df2b8abeaae051bcec5be5126494d3b003b2d (patch) | |
tree | 276fff8f056a32fc35d3f90dd53202abdaa36f68 /data | |
parent | 8d6430a696b62fa1de5dcd92d00d80fb810d5f07 (diff) | |
download | vyos-1x-377df2b8abeaae051bcec5be5126494d3b003b2d.tar.gz vyos-1x-377df2b8abeaae051bcec5be5126494d3b003b2d.zip |
nginx: T3740: use bracketize_ipv6 Jinja2 filter on server address
(cherry picked from commit f3df9e97c6bedd305133e860654fc0213c12fd6b)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/https/nginx.default.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl index 81f8b3b8c..4aaf0132f 100644 --- a/data/templates/https/nginx.default.tmpl +++ b/data/templates/https/nginx.default.tmpl @@ -17,7 +17,7 @@ server { listen {{ server.port }} ssl; listen [::]:{{ server.port }} ssl; {% else %} - listen {{ server.address }}:{{ server.port }} ssl; + listen {{ server.address | bracketize_ipv6 }}:{{ server.port }} ssl; {% endif %} {% for name in server.name %} |