From: Michael Tremer Date: Tue, 22 Apr 2025 16:12:20 +0000 (+0200) Subject: firewall.cgi: Use "peer" for the WireGuard "hosts" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60dd0f8f15d1b70e0692c933dcf374dd329ee365;p=ipfire-2.x.git firewall.cgi: Use "peer" for the WireGuard "hosts" We don't distinguish between N2N and RW and therefore we should not use the term "hosts" here. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 842ad731f..3c02a9a92 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1191,13 +1191,13 @@ END print < - + $Lang::tr{'fwhost wg peers'} - " EOF # Sort peers by name foreach my $key (sort { $Wireguard::peers{$a}[2] cmp $Wireguard::peers{$b}[2] } keys %Wireguard::peers) { @@ -1548,7 +1548,7 @@ sub getcolor } } #VPN networks - if ($nettype eq 'wg_host_src' || $nettype eq 'wg_host_tgt'){ + if ($nettype eq 'wg_peer_src' || $nettype eq 'wg_peer_tgt'){ $tdcolor="style='background-color: $Header::colourwg;color:white;'"; return; } @@ -2609,7 +2609,7 @@ END if(&fwlib::get_ovpn_host_ip($host,33) eq ''){ $coloryellow='on'; } - } elsif ($$hash{$key}[3] eq 'wg_host_src') { + } elsif ($$hash{$key}[3] eq 'wg_peer_src') { if (!defined &Wireguard::get_peer_by_name($host)) { $coloryellow = 'on'; } @@ -2632,7 +2632,7 @@ END if(&fwlib::get_ovpn_host_ip($host,33) eq ''){ $coloryellow='on'; } - } elsif ($$hash{$key}[3] eq 'wg_host_tgt') { + } elsif ($$hash{$key}[3] eq 'wg_peer_tgt') { if (!defined &Wireguard::get_peer_by_name($host)) { $coloryellow = 'on'; }