mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 17:02:58 +02:00
Squid: added check if ram cache is greater than harddisk cache
This commit is contained in:
committed by
Michael Tremer
parent
f0ccae1819
commit
d5a7ff9500
@@ -348,6 +348,11 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'}
|
||||
$errormessage = $Lang::tr{'invalid input'};
|
||||
goto ERROR;
|
||||
}
|
||||
if($proxysettings{'CACHE_MEM'} > $proxysettings{'CACHE_SIZE'}){
|
||||
$errormessage = $Lang::tr{'advproxy errmsg cache'}." ".$proxysettings{'CACHE_MEM'}." > ".$proxysettings{'CACHE_SIZE'};
|
||||
goto ERROR;
|
||||
}
|
||||
|
||||
if (!(&General::validport($proxysettings{'PROXY_PORT'})))
|
||||
{
|
||||
$errormessage = $Lang::tr{'advproxy errmsg invalid proxy port'};
|
||||
|
||||
Reference in New Issue
Block a user