mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
index.cgi: Hide blue and green if not enabled
Those were shown when a blue or orange interface was assigned which is not the same as enabled.
This commit is contained in:
@@ -301,7 +301,7 @@ END
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
if ( $netsettings{'BLUE_DEV'} ) {
|
||||
if (&Header::blue_used()) {
|
||||
my $sub=&General::iporsubtocidr($netsettings{'BLUE_NETMASK'});
|
||||
print <<END;
|
||||
<tr>
|
||||
@@ -318,7 +318,7 @@ END
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
if ( $netsettings{'ORANGE_DEV'} ) {
|
||||
if (&Header::orange_used()) {
|
||||
my $sub=&General::iporsubtocidr($netsettings{'ORANGE_NETMASK'});
|
||||
print <<END;
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user