fix: try to fix connection id updation

This commit is contained in:
Akash Mondal
2025-06-20 11:52:51 +00:00
committed by lla-dane
parent 6633eb01d4
commit e2fee14bc5
8 changed files with 1305 additions and 79 deletions

View File

@ -420,7 +420,7 @@ class QUICTLSSecurityConfig:
alpn_protocols: List[str] = field(default_factory=lambda: ["libp2p"])
# TLS verification settings
verify_mode: Union[bool, ssl.VerifyMode] = False
verify_mode: ssl.VerifyMode = ssl.CERT_NONE
check_hostname: bool = False
# Optional peer ID for validation
@ -627,7 +627,7 @@ def create_server_tls_config(
peer_id=peer_id,
is_client_config=False,
config_name="server",
verify_mode=ssl.CERT_REQUIRED, # Server doesn't verify client certs in libp2p
verify_mode=ssl.CERT_NONE, # Server doesn't verify client certs in libp2p
check_hostname=False,
**kwargs,
)