fix syncproxy https bind on ipv6 address
authorPeter Palfrader <peter@palfrader.org>
Sun, 12 Feb 2017 17:04:18 +0000 (17:04 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 12 Feb 2017 17:04:18 +0000 (17:04 +0000)
modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb

index b1a9538..7da6cb5 100644 (file)
@@ -5,7 +5,7 @@
 
 <%
   vhost_listen = [ (bind != '') ? "#{bind}:80" : "*:80",  (bind6 != '') ? "#{bind6}:80" : "*:80"].uniq.join(' ')
-  vhost_listen_443 = [ (bind != '') ? "#{bind}:443" : "*:443",  (bind6 != '') ? "#{bind6}:443" : "*:443"].uniq.join(' ')
+  vhost_listen_443 = [ (bind != '') ? "#{bind}:443" : "*:443",  (bind6 != '') ? "[#{bind6}]:443" : "*:443"].uniq.join(' ')
 %>
 
 Use common-debian-service-https-redirect "<%= vhost_listen %>" <%= syncproxy_name %>