diff --git a/app/bot.php b/app/bot.php index 31dbbb1..c304966 100644 --- a/app/bot.php +++ b/app/bot.php @@ -2232,7 +2232,7 @@ DNS-over-HTTPS with IP: if (!empty($v['# PublicKey'])) { $conf['peers'][$k]['online'] = 'off'; } else { - $conf['peers'][$k]['status'] = $this->getStatusPeer($v['PublicKey'], $status['peers']); + $conf['peers'][$k]['status'] = $status ? $this->getStatusPeer($v['PublicKey'], $status['peers']) : 'error'; $conf['peers'][$k]['online'] = preg_match('~^(\d+ seconds|[12] minute)~', $conf['peers'][$k]['status']['latest handshake']) ? 'online' : ''; } } @@ -2587,7 +2587,7 @@ DNS-over-HTTPS with IP: if ($clients) { $name = $this->getName($clients[$client]['interface']); $conf = $this->createConfig($clients[$client]); - if ($this->getInstanceWG(1)) { + if ($this->getWGType() == 'awg') { $sl = $this->getAmneziaShortLink($clients[$client]); } return [