summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/drakguard6
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 {