]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
wireguard-functions.pl: Don't strictly require a port in imported configurations
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Apr 2025 15:50:09 +0000 (17:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Apr 2025 15:50:09 +0000 (17:50 +0200)
If importing a client configuration, there might not be a port. This is
quite likely to happen with VPN providers that don't create a connection
but are awaiting incoming connections only.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/wireguard-functions.pl

index fb9829724adda4ed4f1820fa8d2147ccd0ef4c3e..f13fed17ca44b2102a59dde5baef457e49568bbf 100644 (file)
@@ -613,10 +613,6 @@ sub parse_configuration($$) {
                push(@errormessages, $Lang::tr{'wg missing allowed ips'});
        }
 
-       unless (exists $peer{"PORT"}) {
-               push(@errormessages, $Lang::tr{'wg missing port'});
-       }
-
        unless (exists $peer{"ENDPOINT_ADDRESS"}) {
                push(@errormessages, $Lang::tr{'wg missing endpoint address'});
        }