Skip to content

Commit

Permalink
Use the port from the URL if provided for H3 [#1139]
Browse files Browse the repository at this point in the history
(cherry picked from commit 566d103)
  • Loading branch information
rthalley committed Oct 5, 2024
1 parent a287921 commit 4eaf0e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dns/asyncquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ async def _http3(

url_parts = urllib.parse.urlparse(url)
hostname = url_parts.hostname
if url_parts.port is not None:
port = url_parts.port

q.id = 0
wire = q.to_wire()
Expand Down
2 changes: 2 additions & 0 deletions dns/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ def _http3(

url_parts = urllib.parse.urlparse(url)
hostname = url_parts.hostname
if url_parts.port is not None:
port = url_parts.port

q.id = 0
wire = q.to_wire()
Expand Down

0 comments on commit 4eaf0e2

Please sign in to comment.