mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Merge branch 'master' of ssh://arne_f@git.ipfire.org/pub/git/ipfire-2.x
This commit is contained in:
@@ -5,3 +5,4 @@ srv/web/ipfire/cgi-bin/index.cgi
|
|||||||
srv/web/ipfire/cgi-bin/pppsetup.cgi
|
srv/web/ipfire/cgi-bin/pppsetup.cgi
|
||||||
srv/web/ipfire/cgi-bin/proxy.cgi
|
srv/web/ipfire/cgi-bin/proxy.cgi
|
||||||
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||||
|
usr/sbin/updxlrator
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
#Stop services
|
#Stop services
|
||||||
|
echo Stopping Proxy
|
||||||
|
/etc/init.d/squid stop 2>/dev/null
|
||||||
|
|
||||||
#
|
#
|
||||||
#Extract files
|
#Extract files
|
||||||
@@ -33,6 +35,8 @@ extract_files
|
|||||||
|
|
||||||
#
|
#
|
||||||
#Start services
|
#Start services
|
||||||
|
echo Starting Proxy
|
||||||
|
/etc/init.d/squid start 2>/dev/null
|
||||||
|
|
||||||
#
|
#
|
||||||
#Update Language cache
|
#Update Language cache
|
||||||
|
|||||||
@@ -101,7 +101,10 @@ while (<>) {
|
|||||||
# Section: Linux Downloads
|
# Section: Linux Downloads
|
||||||
# -----------------------------------------------------------
|
# -----------------------------------------------------------
|
||||||
|
|
||||||
if ($source_url =~ m@^[h|f]t?tp://[^?]+\.(deb|rpm)$@i)
|
if (
|
||||||
|
($source_url =~ m@^[h|f]t?tp://[^?]+\.(deb|rpm)$@i) ||
|
||||||
|
($source_url =~ m@^[h|f]t?tp://[^?]+/distfiles/[^?]+\.(tar\.gz|tar\.bz2|tgz|zip|patch\.bz2|gz|docx|patch|pdf|exe)$@i)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$xlrator_url = &check_cache($source_url,$hostaddr,$username,"Linux",$mirror);
|
$xlrator_url = &check_cache($source_url,$hostaddr,$username,"Linux",$mirror);
|
||||||
}
|
}
|
||||||
@@ -157,7 +160,11 @@ while (<>) {
|
|||||||
# Section: Avira Downloads
|
# Section: Avira Downloads
|
||||||
# -----------------------------------------------------------
|
# -----------------------------------------------------------
|
||||||
|
|
||||||
if ($source_url =~ m@^http://dl[0-9]\.avgate\.net/.*\.(htm|html|gz)$@i)
|
if (
|
||||||
|
($source_url =~ m@^http://dl[0-9]\.avgate\.net/.*\.(htm|html|gz)$@i) ||
|
||||||
|
($source_url =~ m@^http://80.190.130.19[4-5]/update/.*\.(htm|html|gz)$@i) ||
|
||||||
|
($source_url =~ m@^http://62.146.64.14[6-7]/update/.*\.(htm|html|gz)$@i)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$xlrator_url = &check_cache($source_url,$hostaddr,$username,"Avira",$mirror);
|
$xlrator_url = &check_cache($source_url,$hostaddr,$username,"Avira",$mirror);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user