Skip to content

Commit

Permalink
set allowed_endpoints to None when not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Mar 22, 2021
1 parent 9d7c1b0 commit a8765c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sygnal/webpushpushkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a8765c1

Please sign in to comment.