diff options
Diffstat (limited to 'proxy_wizard')
-rwxr-xr-x | proxy_wizard/Squid.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm index ff9559e2..e938d2d3 100755 --- a/proxy_wizard/Squid.pm +++ b/proxy_wizard/Squid.pm @@ -262,13 +262,7 @@ level = $o->{var}{wiz_squid_level}"); } else { # should not happen die "wiz_squid_level error"; } - my $t = 0; - foreach (cat_($file)) { - if (/^\s*cache_peer/) { - $t = $_; - last; - } - } + my $t = find { /^\s*cache_peer/ } cat_($file); if ($o->{var}{wiz_squid_menupeer} == 1 && length $t) { substInFile { s|^\s*!#\s*(cache_peer.*)|#$&|; |