diff --git a/api/troubleshooting/read b/api/troubleshooting/read index 9de8536e..82c67ba1 100755 --- a/api/troubleshooting/read +++ b/api/troubleshooting/read @@ -263,7 +263,9 @@ if ($cmd eq 'ping') { $count++; my $file = '/var/lib/shorewall/'.$_->key.'.status'; if (-f $file) { - if (slurp($file) eq '1') { + my $status = slurp($file); + chomp($status); + if ($status eq '1') { $failed++; } } diff --git a/ui/src/components/TroubleshootingNetwork.vue b/ui/src/components/TroubleshootingNetwork.vue index 629ebacd..7fc575df 100644 --- a/ui/src/components/TroubleshootingNetwork.vue +++ b/ui/src/components/TroubleshootingNetwork.vue @@ -92,7 +92,7 @@ >