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

Commit b019062

Browse files
committed
Fix TLS when using the ProxyAgent
Same fix as #15746 Thanks to @realtyem for pointing it out! `creatorForNetloc(...)` doesn't come with typing and expects `host` to be `bytes` instead of a `str`. `ProxyAgent` was introduced with the federation outbound proxy: #15773
1 parent b07b14b commit b019062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/http/proxyagent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def __init__(
152152

153153
if federation_proxy.tls:
154154
tls_connection_creator = self._policy_for_https.creatorForNetloc(
155-
federation_proxy.host,
155+
federation_proxy.host.encode("utf-8"),
156156
federation_proxy.port,
157157
)
158158
endpoint = wrapClientTLS(tls_connection_creator, endpoint)

0 commit comments

Comments
 (0)