From e55f34c23d66c2b96e25a46a491d3430fcc20ea6 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Mon, 11 Aug 2008 22:48:49 +0000 Subject: allow squid to use separate DNS-servers --- packages/squid/squid.inc | 6 +++--- 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 @@ checkbox - What to do with requests that have whitespace characters in the URI. + What to do with requests that have whitespace characters in the URI uri_whitespace <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. select @@ -270,6 +270,13 @@ + + Use different DNS-servers for the proxy-server + dns_nameservers + If you want to use other DNS-servers than the DNS-forwarder, enter the IPs here separated by spaces. + input + 60 + Custom Options custom_options -- cgit v1.2.3