[4/4] connections.cgi: Support CIDR notation

Message ID 20241206164417.3840426-4-michael.tremer@ipfire.org
State New
Headers
Series [1/4] connections.cgi: Fix colour of destination country |

Commit Message

Michael Tremer Dec. 6, 2024, 4:44 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/connections.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi
index 7286f9b46..80cb4bb69 100644
--- a/html/cgi-bin/connections.cgi
+++ b/html/cgi-bin/connections.cgi
@@ -476,7 +476,7 @@  sub ipcolour($) {
 
 	foreach my $network (@networks) {
 		if (defined $network) {
-			if (&Network::check_ip_address_and_netmask($network)) {
+			if (&Network::check_subnet($network)) {
 				if (&Network::ip_address_in_network($address, $network)) {
 					return $networks{$network};
 				}