summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-13 12:34:11 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-13 12:34:23 +0200
commitf3df9e97c6bedd305133e860654fc0213c12fd6b (patch)
tree586fef2077cf3c499fc7dd6e802b9e00efe2d13f
parent986dcd3a581085eb22207985cba03e03ad84f3d1 (diff)
downloadvyos-1x-f3df9e97c6bedd305133e860654fc0213c12fd6b.tar.gz
vyos-1x-f3df9e97c6bedd305133e860654fc0213c12fd6b.zip
nginx: T3740: use bracketize_ipv6 Jinja2 filter on server address
-rw-r--r--data/templates/https/nginx.default.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl
index b40ddcc74..2f8aa06c2 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 %}