aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorVince <github@darkain.com>2013-06-23 18:22:07 -0600
committerVince <github@darkain.com>2013-06-23 18:22:07 -0600
commit7772041af804ebeba5b3d71e408bcdca63e57ef3 (patch)
tree30048a03ee192766e8108caad74ad682d62975a1 /config
parentde530b05cef3bd3bc65beaa86df84c99ea8911a9 (diff)
downloadpfsense-packages-7772041af804ebeba5b3d71e408bcdca63e57ef3.tar.gz
pfsense-packages-7772041af804ebeba5b3d71e408bcdca63e57ef3.tar.bz2
pfsense-packages-7772041af804ebeba5b3d71e408bcdca63e57ef3.zip
IPv6 Addresses need to be enclosed in brackets
IPv6 Addresses need to be enclosed in brackets This is a very lazy test for IPv6 instead of IPv4 addresses. The desired function, filter_var, does not appear to be available in the pfSense build I'm running. http://php.net/manual/en/function.filter-var.php
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";