fix wg timer format

This commit is contained in:
mercury
2023-05-12 00:11:59 +04:00
parent 832180a066
commit 562c81cafc
+1 -1
View File
@@ -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']) {