1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/proxyagent.py b/synapse/http/proxyagent.py
index 1fa3adbef2..fd418fc225 100644
--- a/synapse/http/proxyagent.py
+++ b/synapse/http/proxyagent.py
@@ -152,7 +152,7 @@ class ProxyAgent(_AgentBase):
if federation_proxy.tls:
tls_connection_creator = self._policy_for_https.creatorForNetloc(
- federation_proxy.host,
+ federation_proxy.host.encode("utf-8"),
federation_proxy.port,
)
endpoint = wrapClientTLS(tls_connection_creator, endpoint)
|