From dff6f658babd61890308eed62c256fd72ce647f7 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 11 Jun 2023 16:36:33 +0400 Subject: [PATCH] improve naming wg peer --- app/bot.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/bot.php b/app/bot.php index 6410b43..f4fa738 100644 --- a/app/bot.php +++ b/app/bot.php @@ -904,7 +904,7 @@ class Bot public function addSubnets($page = 0) { - $this->createPeer(implode(',', $this->getPacConf()['subnets']), 'subnets'); + $this->createPeer(implode(',', $this->getPacConf()['subnets']), 'list'); } public function change_server_ip($ip) @@ -1529,7 +1529,7 @@ DNS-over-HTTPS with IP: public function addPeer() { - $this->createPeer(name: 'all traffic'); + $this->createPeer(name: 'all'); } public function config() @@ -2022,10 +2022,10 @@ DNS-over-HTTPS with IP: 'text' => '<<', 'callback_data' => "/menu wg " . ($page - 1 >= 0 ? $page - 1 : $all - 1), ], - [ - 'text' => 'all', - 'callback_data' => "/menu wg -1", - ], + // [ + // 'text' => 'all', + // 'callback_data' => "/menu wg -1", + // ], [ 'text' => '>>', 'callback_data' => "/menu wg " . ($page < $all - 1 ? $page + 1 : 0),