mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
dns.cgi: Perform kdig tests only if the system is online.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -781,6 +781,11 @@ sub grab_address_from_file($) {
|
||||
sub check_nameserver($$$$) {
|
||||
my ($nameserver, $record, $proto, $tls_hostname) = @_;
|
||||
|
||||
# Check if the system is online.
|
||||
unless (&red_is_active()) {
|
||||
return "$Lang::tr{'system is offline'}";
|
||||
}
|
||||
|
||||
# Default values.
|
||||
my @command = ("kdig", "+timeout=2", "+retry=0", "+dnssec",
|
||||
"+bufsize=1232");
|
||||
|
||||
Reference in New Issue
Block a user