From a8765c1a57d26a19e5507ad0cc2e15b8399221d3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 22 Mar 2021 18:56:44 +0100 Subject: [PATCH] set allowed_endpoints to None when not specified --- sygnal/webpushpushkin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sygnal/webpushpushkin.py b/sygnal/webpushpushkin.py index 3b2ba4de..c5eed245 100644 --- a/sygnal/webpushpushkin.py +++ b/sygnal/webpushpushkin.py @@ -104,6 +104,8 @@ def __init__(self, name, sygnal, config): "'allowed_endpoints' should be a list or not set" ) self.allowed_endpoints = list(map(glob_to_regex, allowed_endpoints)) + else: + self.allowed_endpoints = None privkey_filename = self.get_config("vapid_private_key") if not privkey_filename: raise PushkinSetupException("'vapid_private_key' not set in config")