From 657801ca491cf671d7201354b566a42d6cce6515 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 22 Apr 2025 17:48:20 +0200 Subject: [PATCH] firewall.cgi: Highlight WireGuard rules in the correct colour Signed-off-by: Michael Tremer --- html/cgi-bin/firewall.cgi | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5