Fix using TLS for replication (#15746)

Fixes #15744.
This commit is contained in:
Erik Johnston 2023-06-08 13:03:48 +01:00 committed by GitHub
parent 6cd6a2ae59
commit 733342ad3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15746.bugfix Normal file
View File

@ -0,0 +1 @@
Fix regression where using TLS for replication did not work. Introduced in v1.85.0.

View File

@ -76,7 +76,7 @@ class ReplicationEndpointFactory:
endpoint = wrapClientTLS(
# The 'port' argument below isn't actually used by the function
self.context_factory.creatorForNetloc(
self.instance_map[worker_name].host,
self.instance_map[worker_name].host.encode("utf-8"),
self.instance_map[worker_name].port,
),
endpoint,