From: Michael Tremer Date: Thu, 25 Apr 2024 17:22:01 +0000 (+0200) Subject: wireguard.cgi: Call start instead of reload X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2406a4cfe573cdc926e14150522578d861e4c240;p=people%2Fstevee%2Fipfire-2.x.git wireguard.cgi: Call start instead of reload I didn't implement reload in the helper. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi index 5f84c7a20..f1e8eda91 100644 --- a/html/cgi-bin/wireguard.cgi +++ b/html/cgi-bin/wireguard.cgi @@ -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