mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
docstrings for the Tor and I2P address family implementations
This commit is contained in:
parent
18c18a0e1d
commit
fcbe56ba0a
@ -169,6 +169,13 @@ class _Provider(service.MultiService):
|
||||
return i2p_port
|
||||
|
||||
def get_client_endpoint(self):
|
||||
"""
|
||||
Get an ``IStreamClientEndpoint`` which will set up a connection to an I2P
|
||||
address.
|
||||
|
||||
If I2P is not enabled or the dependencies are not available, return
|
||||
``None`` instead.
|
||||
"""
|
||||
enabled = self._get_i2p_config("enabled", True, boolean=True)
|
||||
if not enabled:
|
||||
return None
|
||||
|
@ -236,6 +236,12 @@ class _Provider(service.MultiService):
|
||||
return ep
|
||||
|
||||
def get_client_endpoint(self):
|
||||
"""
|
||||
Get an ``IStreamClientEndpoint`` which will set up a connection using Tor.
|
||||
|
||||
If Tor is not enabled or the dependencies are not available, return
|
||||
``None`` instead.
|
||||
"""
|
||||
enabled = self._get_tor_config("enabled", True, boolean=True)
|
||||
if not enabled:
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user