Skip to content

Commit 99eae17

Browse files
committed
Resolve init conflict
1 parent 0d9d9ec commit 99eae17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libp2p/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def new_swarm(
434434
"QUIC transport is not available. "
435435
"Install the 'quic' extra: pip install libp2p[quic]"
436436
)
437-
transport = QUICTransport(key_pair.private_key, config=quic_transport_opt)
437+
transport = QUICTransport(key_pair.private_key, config=quic_transport_opt, enable_autotls=enable_autotls)
438438
else:
439439
transport = TCP()
440440
else:
@@ -473,7 +473,7 @@ def new_swarm(
473473
f"new_swarm: Forcing QUIC transport (enable_quic=True "
474474
f"but got {type(transport)})"
475475
)
476-
transport = QUICTransport(key_pair.private_key, config=quic_transport_opt)
476+
transport = QUICTransport(key_pair.private_key, config=quic_transport_opt, enable_autotls=enable_autotls)
477477

478478
logger.debug(f"new_swarm: Final transport type: {type(transport)}")
479479

0 commit comments

Comments
 (0)