proxy.cgi: Re-apply accidentially removed changes.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Jul 2013 17:38:54 +0000 (19:38 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Jul 2013 17:38:54 +0000 (19:38 +0200)
Removed in dfee7582f9b386126fcaa6c8cdcb98677e34f5b4,
originally introduced in 49c7cb232870cce6986f93bb6fc3b6dbf643ec07.

html/cgi-bin/proxy.cgi

index 76d52b425157e0788a4fa4398af4aea30a3a6805..870042ae519e2044119d8fbe06bd8a848626e197 100644 (file)
@@ -3071,6 +3071,12 @@ icp_port 0
 
 END
        ;
+
+       # Include file with user defined settings.
+       if (-e "/etc/squid/squid.conf.pre.local") {
+               print FILE "include /etc/squid/squid.conf.pre.local\n\n";
+       }
+
        print FILE "http_port $netsettings{'GREEN_ADDRESS'}:$proxysettings{'PROXY_PORT'}";
        if ($proxysettings{'TRANSPARENT'} eq 'on') { print FILE " transparent" }
        if ($proxysettings{'NO_CONNECTION_AUTH'} eq 'on') { print FILE " no-connection-auth" }