diff options
-rw-r--r-- | proxy_wizard/scripts/Squidconf.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proxy_wizard/scripts/Squidconf.pm b/proxy_wizard/scripts/Squidconf.pm index d9d1c103..b586b711 100644 --- a/proxy_wizard/scripts/Squidconf.pm +++ b/proxy_wizard/scripts/Squidconf.pm @@ -51,19 +51,19 @@ mynetw = $ENV{wiz_squid_mynetw} cache_mem = $ENV{wiz_squid_mem} http_port = $ENV level = $ENV{wiz_squid_level}"); if ($ENV{wiz_squid_level} == 1) { substInFile { - s|^\s*\#?\s*(http_access\s*)deny(\s*all.*)|\#$&$1allow$2|; + s|^\s*\#?\s*(http_access\s*)deny(\s*all.*)|\#$&\n$1allow$2|; } $file; } elsif ($ENV{wiz_squid_level} == 2) { substInFile { - s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&$1deny$2|; - s|^\s*\#?\s*(http_access\s*allow\s*)localhost|\#$&$1mynetwork|; + s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&\n$1deny$2|; + s|^\s*\#?\s*(http_access\s*allow\s*)localhost|\#$&\n$1mynetwork|; } $file; } elsif ($ENV{wiz_squid_level} == 3) { substInFile { - s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&$1deny$2|; - s|^\s*\#?\s*(http_access\s*allow\s*)mynetwork|\#$&$1localhost|; + s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&\n$1deny$2|; + s|^\s*\#?\s*(http_access\s*allow\s*)mynetwork|\#$&\n$1localhost|; } $file; } else { # should not happen |