summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm20
1 files changed, 13 insertions, 7 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 20391a84..77eed5bf 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -72,7 +72,7 @@ my $o = {
$in->ask_warn(N("Error"), $msg);
die 'wizcancel';
}
- ($err, $msg)
+ ($err, $msg);
},
needed_rpm => [ 'bind' ],
defaultimage => "/usr/share/mcc/themes/default/dns_server-mdk.png",
@@ -142,7 +142,9 @@ $o->{pages} = {
if (!is_ip($o->{var}{CLIENTIP})) {
#$in->ask_warn(N("Error"), N("This is not a valid IP address."));
return 1;
- } else { return 0; }
+ } else {
+ return 0;
+ }
}
},
no_back => 1,
@@ -166,7 +168,9 @@ $o->{pages} = {
if (!is_ip($o->{var}{IPMASTER})) {
#$in->ask_warn(N("Error"), N("This is not a valid IP address."));
return 1;
- } else { return 0; }
+ } else {
+ return 0;
+ }
}
},
no_back => 1,
@@ -187,7 +191,9 @@ $o->{pages} = {
if (!is_ip($o->{var}{IPOFFORWARDER})) {
#$in->ask_warn(N("Error"), N("This is not a valid IP address for your forwarder."));
return 1;
- } else { return 0; }
+ } else {
+ return 0;
+ }
}
},
no_back => 1,
@@ -818,9 +824,9 @@ sub end_it {
copy_good();
# start or restart the service
if (services::is_service_running('named')) {
- services::restart('named')
+ services::restart('named');
} else {
- services::start('named')
+ services::start('named');
}
}
@@ -887,7 +893,7 @@ sub do_it_add {
}
increment_serial($iprev);
system("service named reload");
- return 'endadd'
+ return 'endadd';
}
sub do_it_remove {