Link to ticket.

This commit is contained in:
Itamar Turner-Trauring 2023-06-05 12:54:51 -04:00
parent 0e28c8ed4a
commit 940600e0ed

View File

@ -1234,7 +1234,10 @@ class HTTPNativeStorageServer(service.MultiService):
async def _agent_factory(self) -> Optional[Callable[[object, IPolicyForHTTPS, HTTPConnectionPool],IAgent]]:
"""Return a factory for ``twisted.web.iweb.IAgent``."""
# TODO default_connection_handlers should really be an object, not a dict...
# TODO default_connection_handlers should really be an object, not a
# dict, so we can ask "is this using Tor" without poking at a
# dictionary with arbitrary strings... See
# https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4032
handler = self._default_connection_handlers["tcp"]
if handler == "tcp":
return None