From b403e947aea68b746f77787ad45c6b52659da7c4 Mon Sep 17 00:00:00 2001 From: Andreas Kotes Date: Sun, 15 Nov 2020 20:03:57 +0100 Subject: [PATCH] Allow connecting to SSL endpoints --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 4947054..70ad721 100755 --- a/bot.py +++ b/bot.py @@ -361,7 +361,7 @@ class Bot: owners_only = os.getenv('OWNERS_ONLY') is not None if matrix_server and self.matrix_user and bot_owners and access_token: - self.client = AsyncClient(matrix_server, self.matrix_user) + self.client = AsyncClient(matrix_server, self.matrix_user, ssl = matrix_server.startswith("https://")) self.client.access_token = access_token self.join_on_invite = join_on_invite is not None self.owners = bot_owners.split(',')