diff options
author | Derek Jennings <derekjenn@gmail.com> | 2013-08-27 01:09:15 +0100 |
---|---|---|
committer | Derek Jennings <derekjenn@gmail.com> | 2013-08-27 01:09:15 +0100 |
commit | a81f86bb915688de6fed530617bdec6fc106ee2a (patch) | |
tree | 92e38a0d4a98506de4ea77027bb925ffa2a8ca03 | |
parent | 3916cbf9575d4b4db015fd629fdcaf395724cd9c (diff) | |
download | drakwizard-a81f86bb915688de6fed530617bdec6fc106ee2a.tar drakwizard-a81f86bb915688de6fed530617bdec6fc106ee2a.tar.gz drakwizard-a81f86bb915688de6fed530617bdec6fc106ee2a.tar.bz2 drakwizard-a81f86bb915688de6fed530617bdec6fc106ee2a.tar.xz drakwizard-a81f86bb915688de6fed530617bdec6fc106ee2a.zip |
fix parameter format in proxy wizard
-rwxr-xr-x | proxy_wizard/Squid.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm index f46091af..375f795e 100755 --- a/proxy_wizard/Squid.pm +++ b/proxy_wizard/Squid.pm @@ -235,7 +235,7 @@ sub do_it { MDK::Common::cp_af("__WIZ_HOME__/proxy_wizard/scripts/squid.conf.default", $file); substInFile { s|^\s*#?\s*cache_dir ufs /var/spool/squid 100 16 256.*|cache_dir ufs $o->{var}{wiz_squid_defdir} $o->{var}{wiz_squid_disk} 16 256|; - s|^\s*#?\s*acl\s*mynetwork\s*src.*|acl mynetwork src $o->{var}{wiz_squid_mynetw}|; + s|^\s*#?\s*acl\s*localnet\s*src.*|acl localnet src $o->{var}{wiz_squid_mynetw}|; s|^\s*#?\s*(cache_mem\s*)\d+(\s*MB.*)|$1$o->{var}{wiz_squid_mem} MB|; s|^\s*#?\s*(http_port\s*)\d+(.*)|$1$o->{var}{wiz_squid_port}|; } $file; @@ -249,12 +249,12 @@ level = $o->{var}{wiz_squid_level}"); } elsif ($o->{var}{wiz_squid_level} == 2) { substInFile { s|^\s*#?\s*(http_access\s*)allow(\s*all.*)|#$&\n$1deny$2|; - s|^\s*#?\s*(http_access\s*allow\s*)localhost|#$&\n$1mynetwork|; + s|^\s*#?\s*(http_access\s*allow\s*)localhost|#$&\n$1localnet|; } $file; } elsif ($o->{var}{wiz_squid_level} == 3) { substInFile { s|^\s*#?\s*(http_access\s*)allow(\s*all.*)|#$&\n$1deny$2|; - s|^\s*#?\s*(http_access\s*allow\s*)mynetwork|#$&\n$1localhost|; + s|^\s*#?\s*(http_access\s*allow\s*)localnet|#$&\n$1localhost|; } $file; } else { # should not happen die "wiz_squid_level error"; |