From 562c81cafc88f47b6cf5b66b75c268955281a432 Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 12 May 2023 00:11:59 +0400 Subject: [PATCH] fix wg timer format --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 995c99e..6daedf0 100644 --- a/app/bot.php +++ b/app/bot.php @@ -392,7 +392,7 @@ class Bot $clients = $this->readClients(); $server = $this->readConfig(); switch (true) { - case preg_match('~0~', $time): + case preg_match('~^0$~', $time): unset($clients[$client]['interface']['## time']); foreach ($server['peers'] as $k => $v) { if ($v['AllowedIPs'] == $clients[$client]['interface']['Address']) {