]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
firewall.cgi: Highlight WireGuard rules in the correct colour
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 15:48:20 +0000 (17:48 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 15:48:20 +0000 (17:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/firewall.cgi

index 7f572a24fc433610b45f9a86bfb9b367bf78ad8f..e245ee2a1ae0db01d1746c8157d3e6b606a5fb01 100644 (file)
@@ -1548,6 +1548,10 @@ sub getcolor
                        }
                }
                #VPN networks
+               if ($nettype eq 'wg_host_src' || $nettype eq 'wg_host_tgt'){
+                       $tdcolor="style='background-color: $Header::colourwg;color:white;'";
+                       return;
+               }
                if ($nettype eq 'ovpn_n2n_src' || $nettype eq 'ovpn_n2n_tgt' || $nettype eq 'ovpn_net_src' || $nettype eq 'ovpn_net_tgt'|| $nettype eq 'ovpn_host_src' || $nettype eq 'ovpn_host_tgt'){
                        $tdcolor="style='background-color: $Header::colourovpn;color:white;'";
                        return;