update accelerator: Adapt to new squid helper protocol.

This commit is contained in:
Michael Tremer
2014-06-02 01:42:44 +02:00
parent 7cc060415e
commit 9663c20e2d
2 changed files with 7 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ srv/web/ipfire/cgi-bin/ovpnmain.cgi
srv/web/ipfire/cgi-bin/proxy.cgi
srv/web/ipfire/html/themes/ipfire/include/functions.pl
usr/bin/squidGuard
usr/sbin/updxlrator
usr/local/bin/setddns.pl
var/ipfire/langs
var/ipfire/menu.d/20-status.menu

View File

@@ -70,7 +70,7 @@ while (<>) {
$username = $tmp[2]; if ($username eq '') { $username='-'; };
$method = $tmp[3];
$xlrator_url = $source_url;
$xlrator_url = "";
if (($method eq 'GET') || ($method eq 'HEAD'))
{
@@ -212,9 +212,11 @@ while (<>) {
# ----------- ADD NEW SOURCES BEFORE THIS LINE !!! ------------------
}
$request="$xlrator_url $hostaddr $username $method\n";
print $request;
if ($xlrator_url) {
print "OK rewrite-url=\"$xlrator_url\"\n";
} else {
print "ERR\n";
}
}
# -------------------------------------------------------------------