diff --git a/app/bot.php b/app/bot.php index c5d68d0..1a93b51 100644 --- a/app/bot.php +++ b/app/bot.php @@ -2297,9 +2297,8 @@ DNS-over-HTTPS with IP: public function restartWG($conf_str) { - $this->ssh("wg-quick down wg0"); $this->ssh("echo '$conf_str' > /etc/wireguard/wg0.conf"); - $this->ssh("wg-quick up wg0"); + $this->ssh("wg syncconf wg0 <(wg-quick strip wg0)"); return true; }