diff options
Diffstat (limited to 'config/squid')
-rw-r--r-- | config/squid/squid.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 2f77c465..1f264a64 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -725,7 +725,11 @@ function squid_resync_upstream() { $conf = ''; if ($settings['proxy_forwarding'] == 'on') { - $conf .= "cache_peer {$settings['proxy_addr']} parent {$settings['proxy_port']} {$settings['icp_port']} "; + $conf .= "cache_peer {$settings['proxy_addr']} parent {$settings['proxy_port']} "; + if ($settings['icp_port'] == '7') + $conf .= "{$settings['icp_port']} no-query"; + else + $conf .= "{$settings['icp_port']}"; if (!empty($settings['username'])) $conf .= " login={$settings['username']}"; |