diff options
-rw-r--r-- | packages/squid/squid.inc | 1 | ||||
-rw-r--r-- | packages/squid/squid.xml | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 9f3790e6..147daf16 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -504,6 +504,7 @@ EOD; $valid_acls[] = 'localnet'; } if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; + if ($settings['disable_via']) $conf .= "via off\n"; return $conf; } diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml index ee5c4924..d7ed913e 100644 --- a/packages/squid/squid.xml +++ b/packages/squid/squid.xml @@ -185,6 +185,12 @@ <description>If not set, Squid will include your system's IP address or name in the HTTP requests it forwards. By default it looks like this: X-Forwarded-For: 192.1.2.3. If you enable this, it will appear as X-Forwarded-For: unknown</description> <type>checkbox</type> </field> + <field> + <fielddescr>Disable VIA</fielddescr> + <fieldname>disable_via</fieldname> + <description>If not set, Squid will include a Via header in requests and replies.</description> + <type>checkbox</type> + </field> </fields> <custom_add_php_command> squid_resync(); |