From: Michael Tremer Date: Fri, 6 Dec 2024 16:44:17 +0000 (+0000) Subject: connections.cgi: Support CIDR notation X-Git-Tag: v2.29-core191~14^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65e0b783ad3691f12a3cc0e41533b92c93bb13ac;p=ipfire-2.x.git connections.cgi: Support CIDR notation Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index 7286f9b46b..80cb4bb694 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}; }