From 1d317e9b78bba19069e16679adc5921b7ebad332 Mon Sep 17 00:00:00 2001 From: Finn Herzfeld Date: Mon, 10 Dec 2018 14:14:43 -0800 Subject: [PATCH 1/2] Rebuild the list of instances that use this relay every time / is requested --- relay/default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/default.py b/relay/default.py index 638e0c7..b3a1836 100644 --- a/relay/default.py +++ b/relay/default.py @@ -7,9 +7,9 @@ host = CONFIG['ap']['host'] note = CONFIG['note'] inboxes = DATABASE.get('relay-list', []) -targets = '
'.join([urllib.parse.urlsplit(target).hostname for target in inboxes]) async def default(request): + targets = '
'.join([urllib.parse.urlsplit(target).hostname for target in inboxes]) return aiohttp.web.Response( status=200, content_type="text/html", From ef51db3a4a901605f78bb0b25a8186bd4444d12f Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Thu, 27 Dec 2018 09:07:20 +0000 Subject: [PATCH 2/2] Fix encoding problem on actor --- relay/actor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/actor.py b/relay/actor.py index eb5c869..a8d6613 100644 --- a/relay/actor.py +++ b/relay/actor.py @@ -22,8 +22,8 @@ if "actorKeys" not in DATABASE: pubkey = privkey.publickey() DATABASE["actorKeys"] = { - "publicKey": pubkey.exportKey('PEM'), - "privateKey": privkey.exportKey('PEM') + "publicKey": pubkey.exportKey('PEM').decode('utf-8'), + "privateKey": privkey.exportKey('PEM').decode('utf-8') }