mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
Fix external network graphs if traffic not goes over red0
This commit is contained in:
@@ -51,7 +51,13 @@ $cgiparams[1] = '' unless defined $cgiparams[1];
|
||||
|
||||
if ($cgiparams[1] =~ /red/) {
|
||||
&Header::openpage($Lang::tr{'network traffic graphs external'}, 1, '');
|
||||
push (@graphs, ($netsettings{'RED_DEV'}));
|
||||
if ($netsettings{'RED_TYPE'} ne 'PPPOE') {
|
||||
if ($netsettings{'RED_DEV'} ne $netsettings{'GREEN_DEV'}) {
|
||||
push (@graphs, ($netsettings{'RED_DEV'}));
|
||||
}
|
||||
} else {
|
||||
push (@graphs, "ppp0");
|
||||
}
|
||||
if (-e "/var/log/rrd/collectd/localhost/interface/if_octets-ipsec0.rrd") {push (@graphs, ("ipsec0"));}
|
||||
}elsif ($cgiparams[1] =~ /other/) {
|
||||
&Header::openpage($Lang::tr{'network traffic graphs others'}, 1, '');
|
||||
|
||||
Reference in New Issue
Block a user