mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
firewall: Add WireGuard RW to the UI
commit 5a1c02df8973b3acc5c3101a94e86fe6df4b43b6 Author: Michael Tremer <michael.tremer@ipfire.org> Date: Thu Sep 12 19:39:26 2024 +0200 firewall: Add WireGuard RW to the UI Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@ $General::swroot = 'CONFIG_ROOT';
|
||||
$General::noipprefix = 'noipg-';
|
||||
|
||||
require "${General::swroot}/network-functions.pl";
|
||||
require "${General::swroot}/wireguard-functions.pl";
|
||||
|
||||
# This function executes a shell command without forking a shell or do any other
|
||||
# Perl-voodoo before it. It deprecates the "system" command and is the only way
|
||||
@@ -253,6 +254,13 @@ sub setup_default_networks
|
||||
$defaultNetworks->{"IPsec RW (${netaddress}/${prefix})"}{'NET'} = $netaddress;
|
||||
}
|
||||
}
|
||||
|
||||
# WireGuard
|
||||
if ($Wireguard::settings{'CLIENT_POOL'}) {
|
||||
my $name = $Lang::tr{'wg rw peers'};
|
||||
|
||||
$defaultNetworks->{$name}{'NAME'} = "WGRW";
|
||||
}
|
||||
}
|
||||
sub get_aliases
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user