fix start wg1

This commit is contained in:
mercury
2024-03-04 23:26:09 +04:00
parent 5df89e7f89
commit d005ccc919
2 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -3829,7 +3829,6 @@ DNS-over-HTTPS with IP:
public function readStatus()
{
// $this->sd([$this->getWGType(), $this->getInstanceWG()]);
$r = $this->ssh($this->getWGType(), $this->getInstanceWG());
$r = explode(PHP_EOL, $r);
$r = array_filter($r);
@@ -4016,6 +4015,7 @@ DNS-over-HTTPS with IP:
}
$this->saveClients($clients);
}
unset($this->wg);
}
public function saveClients(array $clients)