Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 733342a

Browse files
authored
Fix using TLS for replication (#15746)
Fixes #15744.
1 parent 6cd6a2a commit 733342a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/15746.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix regression where using TLS for replication did not work. Introduced in v1.85.0.

synapse/http/replicationagent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def endpointForURI(self, uri: URI) -> IStreamClientEndpoint:
7676
endpoint = wrapClientTLS(
7777
# The 'port' argument below isn't actually used by the function
7878
self.context_factory.creatorForNetloc(
79-
self.instance_map[worker_name].host,
79+
self.instance_map[worker_name].host.encode("utf-8"),
8080
self.instance_map[worker_name].port,
8181
),
8282
endpoint,

0 commit comments

Comments
 (0)