From bf91511da6461752a75acfaf349c0f5d96e63f3c Mon Sep 17 00:00:00 2001 From: mercury Date: Tue, 6 Jun 2023 09:16:55 +0400 Subject: [PATCH] fix crash wireguard after restart --- app/bot.php | 2 +- version | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index ad95bba..1c85b6a 100644 --- a/app/bot.php +++ b/app/bot.php @@ -2688,7 +2688,7 @@ DNS-over-HTTPS with IP: public function createConfig($data) { $conf[] = "[Interface]"; - if (empty($data['interface']['DNS'])) { + if (empty($data['interface']['ListenPort']) && empty($data['interface']['DNS'])) { $data['interface']['DNS'] = $this->getPacConf()['dns'] ?: $this->dns; } foreach ($data['interface'] as $k => $v) { diff --git a/version b/version index 0b45fc1..531721d 100644 --- a/version +++ b/version @@ -1,3 +1,7 @@ +06.06.2023 фикс зависания wireguard после ребута +git pull +в файле
config/wg0.conf
удалите строчку с DNS, если она там есть +перезапустите make r 05.06.2023 пофиксил "автозагрузку": service vpnbot stop git pull