mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
update accelerator: Adapt to new squid helper protocol.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user