]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
wireguard.cgi: Call start instead of reload
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Apr 2024 17:22:01 +0000 (19:22 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:31 +0000 (16:48 +0200)
I didn't implement reload in the helper.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/wireguard.cgi

index 5f84c7a2084bee60cf297a3134bc3ddbf57016ea..f1e8eda9131ae6bd70a632ea3074523ec9a30ac2 100644 (file)
@@ -112,7 +112,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) {
 
        # Reload if enabled
        if ($settings{'ENABLED'} eq "on") {
-               &General::system("/usr/local/bin/wireguardctrl", "reload");
+               &General::system("/usr/local/bin/wireguardctrl", "start");
        }
 
 # Edit an existing peer
@@ -268,7 +268,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) {
 
        # Reload if enabled
        if ($settings{'ENABLED'} eq "on") {
-               &General::system("/usr/local/bin/wireguardctrl", "reload");
+               &General::system("/usr/local/bin/wireguardctrl", "start");
        }
 
 } elsif ($cgiparams{"ACTION"} eq "SAVE-PEER-HOST") {
@@ -377,7 +377,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) {
 
        # Reload if enabled
        if ($settings{'ENABLED'} eq "on") {
-               &General::system("/usr/local/bin/wireguardctrl", "reload");
+               &General::system("/usr/local/bin/wireguardctrl", "start");
        }
 
        # Show the client configuration when creating a new peer