mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/openvpn-legacy: follow fix from core
This commit is contained in:
@@ -134,7 +134,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
if ($act == "del") {
|
||||
$response = ["status" => "failed", "message" => gettext("not found")];
|
||||
if (isset($id) && !empty($a_client[$id])) {
|
||||
if (isset($id) && !empty($a_server[$id])) {
|
||||
openvpn_delete('server', $a_server[$id]);
|
||||
unset($a_server[$id]);
|
||||
write_config();
|
||||
|
||||
Reference in New Issue
Block a user