diff options
author | Cino <cinony@gmail.com> | 2015-01-16 10:25:14 -0500 |
---|---|---|
committer | Cino <cinony@gmail.com> | 2015-01-16 10:25:14 -0500 |
commit | 273ce40be69f8d052d8375cdefec203b8c4bf5ac (patch) | |
tree | 17bfba3fe3e37d0d3caf32610c08a5735e470129 /config | |
parent | 5bf67414fb8f34516189c97fb1b8f65b28756871 (diff) | |
download | pfsense-packages-273ce40be69f8d052d8375cdefec203b8c4bf5ac.tar.gz pfsense-packages-273ce40be69f8d052d8375cdefec203b8c4bf5ac.tar.bz2 pfsense-packages-273ce40be69f8d052d8375cdefec203b8c4bf5ac.zip |
add new X-Forward Mode options
Diffstat (limited to 'config')
-rwxr-xr-x | config/squid3/34/squid.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index e2c8c71a..a058927e 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -1030,7 +1030,8 @@ EOD; $conf .= "acl localnet src $src\n"; $valid_acls[] = 'localnet'; } - if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; + if ($settings['xforward_mode']) $conf .= "forwarded_for {$settings['xforward_mode']}\n"; + else $conf .= "forwarded_for on\n"; //only used for first run if ($settings['disable_via']) $conf .= "via off\n"; if ($settings['disable_squidversion']) $conf .= "httpd_suppress_version_string on\n"; if (!empty($settings['uri_whitespace'])) $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; |