From: Michael Tremer Date: Tue, 22 Apr 2025 15:48:20 +0000 (+0200) Subject: firewall.cgi: Highlight WireGuard rules in the correct colour X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=657801ca491cf671d7201354b566a42d6cce6515;p=people%2Fmfischer%2Fipfire-2.x.git firewall.cgi: Highlight WireGuard rules in the correct colour Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 7f572a24f..e245ee2a1 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -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;