From 75cf0420c3fc22ecc0ddb2b6b4ffaa60ca02df1d Mon Sep 17 00:00:00 2001 From: mercury Date: Mon, 26 Jun 2023 16:39:17 +0400 Subject: [PATCH] fix ssl export --- app/bot.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/bot.php b/app/bot.php index fd654d1..3fdaa7e 100644 --- a/app/bot.php +++ b/app/bot.php @@ -722,10 +722,10 @@ class Bot 'sl' => $this->getSSLocalConfig(), 'ad' => yaml_parse_file('/config/adguard/AdGuardHome.yaml'), 'pac' => $this->getPacConf(), - 'ssl' => [ - 'private' => file_exists('/certs/cert_private') ? file_get_contents('/certs/cert_private') : false, - 'public' => file_exists('/certs/cert_public') ? file_get_contents('/certs/cert_public') : false, - ], + 'ssl' => file_exists('/certs/cert_private') ? [ + 'private' => file_get_contents('/certs/cert_private'), + 'public' => file_get_contents('/certs/cert_public'), + ] : false, 'mtproto' => file_get_contents('/config/mtprotosecret'), ];