From 2406a4cfe573cdc926e14150522578d861e4c240 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 25 Apr 2024 19:22:01 +0200 Subject: [PATCH] wireguard.cgi: Call start instead of reload I didn't implement reload in the helper. Signed-off-by: Michael Tremer --- html/cgi-bin/wireguard.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5