Skip to content

Commit

Permalink
Merge pull request #1310 from tahoe-lafs/4038-correct-ticket
Browse files Browse the repository at this point in the history
Point to correct tickets

Fixes ticket:4038
  • Loading branch information
itamarst committed Jul 18, 2023
2 parents c6daeaf + bc78dbc commit 7bcd90c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Empty file added newsfragments/4038.minor
Empty file.
8 changes: 4 additions & 4 deletions src/allmydata/protocol_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def add_storage_server(
# If we're listening on Tor, the hostname needs to have an
# .onion TLD.
assert hostname.endswith(".onion")
# The I2P scheme is yet not supported by the HTTP client, so we
# don't want generate a NURL that won't work. This will be
# fixed in https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4037
port = int(port)
storage_nurls.add(
build_nurl(
Expand All @@ -122,10 +125,7 @@ def add_storage_server(
subscheme
)
)
# TODO this is where we'll have to support Tor and I2P as well.
# See https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3888#comment:9
# for discussion (there will be separate tickets added for those at
# some point.)

return storage_nurls

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions src/allmydata/storage/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ async def _create_agent(
pool=pool, tls_context_factory=tls_context_factory
)
else:
# I2P support will be added here. See
# https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4037
raise RuntimeError(f"Unsupported tcp connection handler: {handler}")

async def create_storage_client(
Expand Down

0 comments on commit 7bcd90c

Please sign in to comment.