aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2013-06-23 23:54:11 -0700
committerErmal Luçi <eri@pfsense.org>2013-06-23 23:54:11 -0700
commitf25873bbe32c815b43cf812942e525e9fd59b37d (patch)
tree764ba3bd57ddffe83fa47986c4eb14ce5b795c99 /config
parentd5a9ebda89a51ef0d22b218943d53bb613728a4c (diff)
parent7772041af804ebeba5b3d71e408bcdca63e57ef3 (diff)
downloadpfsense-packages-f25873bbe32c815b43cf812942e525e9fd59b37d.tar.gz
pfsense-packages-f25873bbe32c815b43cf812942e525e9fd59b37d.tar.bz2
pfsense-packages-f25873bbe32c815b43cf812942e525e9fd59b37d.zip
Merge pull request #464 from darkain/patch-2
IPv6 Addresses need to be enclosed in brackets
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/33/squid_reverse.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/squid3/33/squid_reverse.inc b/config/squid3/33/squid_reverse.inc
index 6ca97711..c4061ba4 100755
--- a/config/squid3/33/squid_reverse.inc
+++ b/config/squid3/33/squid_reverse.inc
@@ -89,6 +89,9 @@ function squid_resync_reverse() {
if(!empty($settings['reverse_ip'])) {
$reverse_ip = explode(";", ($settings['reverse_ip']));
foreach ($reverse_ip as $reip) {
+ //IPv6 Addresses need to be enclosed in brackets
+ if (strpos($reip, ':')) $reip = '[' . $reip . ']';
+
//HTTP
if (!empty($settings['reverse_http']))
$conf .= "http_port {$reip}:{$http_port} accel defaultsite={$http_defsite} vhost\n";