]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
wireguard-functions.pl: Actually generate all configuration types
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Dec 2024 19:14:55 +0000 (20:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:53 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/wireguard-functions.pl

index ced6fd2a85051bf282e9b562ad56fe7a960edb38..82bcb27a4f5b4a1579c154f22060d447d2998dfa 100644 (file)
@@ -362,9 +362,6 @@ sub generate_peer_configuration($$) {
        # Return if we could not find the peer
        return undef unless (%peer);
 
-       # Return if this is not a network peer
-       return undef unless ($peer{'TYPE'} eq 'net');
-
        my @allowed_ips = ();
 
        # Convert all subnets into CIDR notation