diff options
author | Ermal Luçi <eri@pfsense.org> | 2013-06-23 23:54:11 -0700 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2013-06-23 23:54:11 -0700 |
commit | f25873bbe32c815b43cf812942e525e9fd59b37d (patch) | |
tree | 764ba3bd57ddffe83fa47986c4eb14ce5b795c99 /config | |
parent | d5a9ebda89a51ef0d22b218943d53bb613728a4c (diff) | |
parent | 7772041af804ebeba5b3d71e408bcdca63e57ef3 (diff) | |
download | pfsense-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-x | config/squid3/33/squid_reverse.inc | 3 |
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"; |