From de037692360062bd851b1c6b47ba15e24a4e0fd9 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 25 May 2023 16:28:11 +0400 Subject: [PATCH] wireguard reload config without restart --- app/bot.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }