From 003816b91c55fd22139f0946da10297a8f61e28f Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 11 May 2023 17:58:54 +0400 Subject: [PATCH] on/off wg peer fix --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 34ba894..8f20b17 100644 --- a/app/bot.php +++ b/app/bot.php @@ -2175,7 +2175,7 @@ DNS-over-HTTPS with IP: if (!empty($data['peers'])) { foreach ($data['peers'] as $peer) { $conf[] = ''; - $conf[] = '[Peer]'; + $conf[] = $peer['# PublicKey'] ? '# [Peer]' : '[Peer]'; foreach ($peer as $k => $v) { $conf[] = "$k = $v"; }