diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-27 11:21:57 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-27 11:21:57 +0000 |
commit | 8f70a9de8ffb611925d7d6cd1e227025c3ff978c (patch) | |
tree | 291da14a27eb47050aaf49a6c7c083e9eb8d4992 /bin | |
parent | bba7ddc91d89b7e3eed80908904822379655fc6f (diff) | |
download | drakguard-8f70a9de8ffb611925d7d6cd1e227025c3ff978c.tar drakguard-8f70a9de8ffb611925d7d6cd1e227025c3ff978c.tar.gz drakguard-8f70a9de8ffb611925d7d6cd1e227025c3ff978c.tar.bz2 drakguard-8f70a9de8ffb611925d7d6cd1e227025c3ff978c.tar.xz drakguard-8f70a9de8ffb611925d7d6cd1e227025c3ff978c.zip |
simplify
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/drakguard | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/drakguard b/bin/drakguard index ba5bd94..076f2a2 100755 --- a/bin/drakguard +++ b/bin/drakguard @@ -225,8 +225,7 @@ sub subst_config_line { sub enable_transparent_proxy { my ($port) = @_; #- FIXME: use network::squid once it is rewritten to be more gentle with the config file - my $to_add = "http_port $port transparent\n"; - subst_config_line($network::squid::squid_conf_file, $to_add); + subst_config_line($network::squid::squid_conf_file, "http_port $port transparent\n"); } #- mostly duplicated for MDK::Common::System::getVarsFromSh @@ -243,8 +242,7 @@ sub read_dansguardian() { } sub write_dansguardian() { - my $to_add = "naughtynesslimit = $level\n"; - subst_config_line($dansguardian_file, $to_add); + subst_config_line($dansguardian_file, "naughtynesslimit = $level\n"); } sub include_guardian_file { |