diff options
author | Martin Fuchs <mfuchs@pfsense.org> | 2008-08-11 22:48:49 +0000 |
---|---|---|
committer | Martin Fuchs <mfuchs@pfsense.org> | 2008-08-11 22:48:49 +0000 |
commit | e55f34c23d66c2b96e25a46a491d3430fcc20ea6 (patch) | |
tree | 6bee38f6b634c8b3728266e7a6b1314305dae310 | |
parent | 9289e8b32471eab8a34cdcd9f078e5ffb666c0c3 (diff) | |
download | pfsense-packages-e55f34c23d66c2b96e25a46a491d3430fcc20ea6.tar.gz pfsense-packages-e55f34c23d66c2b96e25a46a491d3430fcc20ea6.tar.bz2 pfsense-packages-e55f34c23d66c2b96e25a46a491d3430fcc20ea6.zip |
allow squid to use separate DNS-servers
-rw-r--r-- | packages/squid/squid.inc | 6 | ||||
-rw-r--r-- | packages/squid/squid.xml | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index db647876..4c2cb82e 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -500,7 +500,6 @@ cache_effective_group proxy error_directory $errordir visible_hostname $hostname cache_mgr $email - access_log $logdir_access cache_log $logdir_cache cache_store_log none @@ -521,11 +520,12 @@ EOD; } if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; if ($settings['disable_via']) $conf .= "via off\n"; - if (!empty($settings['uri_whitespace'])) $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; - + $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; + if (!empty($settings['dns_nameservers'])) $conf .= "dns_nameservers {$settings['dns_nameservers']}\n"; return $conf; } + function squid_resync_cache() { global $config; diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml index 5c19d96f..9f138ed9 100644 --- a/packages/squid/squid.xml +++ b/packages/squid/squid.xml @@ -242,7 +242,7 @@ <type>checkbox</type> </field> <field> - <fielddescr>What to do with requests that have whitespace characters in the URI.</fielddescr> + <fielddescr>What to do with requests that have whitespace characters in the URI</fielddescr> <fieldname>uri_whitespace</fieldname> <description><b> strip:</b> The whitespace characters are stripped out of the URL. This is the behavior recommended by RFC2396. <p> <b> deny:</b> The request is denied. The user receives an "Invalid Request" message.<p> <b> allow:</b> The request is allowed and the URI is not changed. The whitespace characters remain in the URI.<p> <b> encode:</b> The request is allowed and the whitespace characters are encoded according to RFC1738.<p> <b> chop:</b> The request is allowed and the URI is chopped at the first whitespace.</description> <type>select</type> @@ -271,6 +271,13 @@ </options> </field> <field> + <fielddescr>Use different DNS-servers for the proxy-server</fielddescr> + <fieldname>dns_nameservers</fieldname> + <description>If you want to use other DNS-servers than the DNS-forwarder, enter the IPs here separated by spaces.</description> + <type>input</type> + <size>60</size> + </field> + <field> <fielddescr>Custom Options</fielddescr> <fieldname>custom_options</fieldname> <description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the configuration. They need to be squid.conf native options, otherwise squid will NOT work.</description> |