mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
connections.cgi: Highlight multicast (former class D) connections.
This commit is contained in:
@@ -32,6 +32,8 @@ require '/var/ipfire/general-functions.pl';
|
|||||||
require "${General::swroot}/lang.pl";
|
require "${General::swroot}/lang.pl";
|
||||||
require "${General::swroot}/header.pl";
|
require "${General::swroot}/header.pl";
|
||||||
|
|
||||||
|
my $colour_multicast = "#A0A0A0";
|
||||||
|
|
||||||
&Header::showhttpheaders();
|
&Header::showhttpheaders();
|
||||||
|
|
||||||
my @network=();
|
my @network=();
|
||||||
@@ -147,6 +149,11 @@ if ($netsettings{'ORANGE_DEV'}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Highlight multicast connections.
|
||||||
|
push(@network, "224.0.0.0");
|
||||||
|
push(@masklen, "239.0.0.0");
|
||||||
|
push(@colour, $colour_multicast);
|
||||||
|
|
||||||
# Add OpenVPN net and RED/BLUE/ORANGE entry (when appropriate)
|
# Add OpenVPN net and RED/BLUE/ORANGE entry (when appropriate)
|
||||||
if (-e "${General::swroot}/ovpn/settings") {
|
if (-e "${General::swroot}/ovpn/settings") {
|
||||||
my %ovpnsettings = ();
|
my %ovpnsettings = ();
|
||||||
@@ -243,6 +250,9 @@ print <<END;
|
|||||||
<td align='center' bgcolor='${Header::colourovpn}'>
|
<td align='center' bgcolor='${Header::colourovpn}'>
|
||||||
<b><font color='#FFFFFF'>$Lang::tr{'OpenVPN'}</font></b>
|
<b><font color='#FFFFFF'>$Lang::tr{'OpenVPN'}</font></b>
|
||||||
</td>
|
</td>
|
||||||
|
<td align='center' bgcolor='$colour_multicast'>
|
||||||
|
<b><font color='#FFFFFF'>Multicast</font></b>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user