mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
connections.cgi: Only evaluate value networks
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -473,8 +473,10 @@ sub ipcolour($) {
|
||||
|
||||
foreach my $network (@networks) {
|
||||
if (defined $network) {
|
||||
if (&Network::ip_address_in_network($address, $network)) {
|
||||
return $networks{$network};
|
||||
if (&Network::check_ip_address_and_netmask($network)) {
|
||||
if (&Network::ip_address_in_network($address, $network)) {
|
||||
return $networks{$network};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user