From 6296fa23cda8cff98510b68f1abe9709d3e1a7ee Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 5 Feb 2019 10:58:56 +0000 Subject: [PATCH] Fix default ACME config for py2 Fixes #4559 --- changelog.d/4564.bugfix | 1 + synapse/config/tls.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/4564.bugfix diff --git a/changelog.d/4564.bugfix b/changelog.d/4564.bugfix new file mode 100644 index 000000000000..78e78504b4a1 --- /dev/null +++ b/changelog.d/4564.bugfix @@ -0,0 +1 @@ +Fix default ACME config for py2 diff --git a/synapse/config/tls.py b/synapse/config/tls.py index 5f63676d9c89..963ebc41e1df 100644 --- a/synapse/config/tls.py +++ b/synapse/config/tls.py @@ -37,7 +37,7 @@ def read_config(self, config): self.acme_enabled = acme_config.get("enabled", False) self.acme_url = acme_config.get( - "url", "https://acme-v01.api.letsencrypt.org/directory" + "url", u"https://acme-v01.api.letsencrypt.org/directory" ) self.acme_port = acme_config.get("port", 80) self.acme_bind_addresses = acme_config.get("bind_addresses", ['::', '0.0.0.0'])