mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
speed.cgi: Suppress error messages if not connected to the internet.
This commit is contained in:
@@ -36,9 +36,8 @@ foreach $field (@fields) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
my $interface = `cat /var/ipfire/red/iface`;
|
||||
my @data_now = `ip -s link show $interface`;
|
||||
my $interface = `cat /var/ipfire/red/iface 2>/dev/null`;
|
||||
my @data_now = `ip -s link show $interface 2>/dev/null`;
|
||||
|
||||
my $lastline;
|
||||
my $rxb_now = 0;
|
||||
|
||||
Reference in New Issue
Block a user