summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAndreas <vyos-git@justsecure.de>2021-12-29 16:06:30 +0100
committerAndreas <vyos-git@justsecure.de>2021-12-29 16:06:30 +0100
commit76a917281ddbb6a5c17dee8195ee00d656484ba2 (patch)
treebadac380536005faa4b2c5957542d2466caacf9b /data
parent6414138a9c5bc55c5a0037ffa523a14b76e814af (diff)
downloadvyos-1x-76a917281ddbb6a5c17dee8195ee00d656484ba2.tar.gz
vyos-1x-76a917281ddbb6a5c17dee8195ee00d656484ba2.zip
webproxy: T4116: Ability to listen on IPv6 addresses
IPv6 addresses on webproxy/SQUID where not added correctly. They need to be added in brackets. Modified squid.conf.tmpl to bracketize the address
Diffstat (limited to 'data')
-rw-r--r--data/templates/squid/squid.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/squid/squid.conf.tmpl b/data/templates/squid/squid.conf.tmpl
index 80826fc75..26aff90bf 100644
--- a/data/templates/squid/squid.conf.tmpl
+++ b/data/templates/squid/squid.conf.tmpl
@@ -88,7 +88,7 @@ tcp_outgoing_address {{ outgoing_address }}
{% if listen_address is defined and listen_address is not none %}
{% for address, config in listen_address.items() %}
-http_port {{ address }}:{{ config.port if config.port is defined else default_port }} {{ 'intercept' if config.disable_transparent is not defined }}
+http_port {{ address | bracketize_ipv6 }}:{{ config.port if config.port is defined else default_port }} {{ 'intercept' if config.disable_transparent is not defined }}
{% endfor %}
{% endif %}
http_port 127.0.0.1:{{ default_port }}