Skip to content

Commit

Permalink
only set configuration.server_name if it's not already set
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbucket authored and jlaine committed Apr 12, 2021
1 parent d15e5ff commit 725ff50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aioquic/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def connect(
# prepare QUIC connection
if configuration is None:
configuration = QuicConfiguration(is_client=True)
if server_name is not None:
if configuration.server_name is None:
configuration.server_name = server_name
connection = QuicConnection(
configuration=configuration, session_ticket_handler=session_ticket_handler
Expand Down

0 comments on commit 725ff50

Please sign in to comment.