From: Michael Tremer Date: Fri, 6 Dec 2024 18:59:54 +0000 (+0100) Subject: wireguard.cgi: Redirect back to the right place on error X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db8d09bdb72ddf08333172b18fc145393c5375d6;p=people%2Fstevee%2Fipfire-2.x.git wireguard.cgi: Redirect back to the right place on error Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi index 04a7b7055..cbde99b0a 100644 --- a/html/cgi-bin/wireguard.cgi +++ b/html/cgi-bin/wireguard.cgi @@ -227,7 +227,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) { } # If there are any errors, we go back to the editor - goto EDITNET if (scalar @errormessages); + goto CREATENET if (scalar @errormessages); # Generate a new key pair my $local_private_key = &Wireguard::generate_private_key();