From 9663c20e2d8936845eff43137fb9108feae1f355 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 2 Jun 2014 01:42:44 +0200 Subject: [PATCH] update accelerator: Adapt to new squid helper protocol. --- config/rootfiles/core/78/filelists/files | 1 + config/updxlrator/updxlrator | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/core/78/filelists/files b/config/rootfiles/core/78/filelists/files index 7ba6c8011..fc6357c97 100644 --- a/config/rootfiles/core/78/filelists/files +++ b/config/rootfiles/core/78/filelists/files @@ -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 diff --git a/config/updxlrator/updxlrator b/config/updxlrator/updxlrator index 91ff8a966..2ddc6d8e4 100644 --- a/config/updxlrator/updxlrator +++ b/config/updxlrator/updxlrator @@ -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"; + } } # ------------------------------------------------------------------- -- 2.39.2