Skip to content

Commit

Permalink
Add h3 support for DoHNameserver.
Browse files Browse the repository at this point in the history
  • Loading branch information
rthalley committed Feb 18, 2024
1 parent 315c1d9 commit 7c753e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dns/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,14 @@ def __init__(
bootstrap_address: Optional[str] = None,
verify: Union[bool, str] = True,
want_get: bool = False,
h3: bool = False,
):
super().__init__()
self.url = url
self.bootstrap_address = bootstrap_address
self.verify = verify
self.want_get = want_get
self.h3 = h3

def kind(self):
return "DoH"
Expand Down Expand Up @@ -214,6 +216,7 @@ def query(
ignore_trailing=ignore_trailing,
verify=self.verify,
post=(not self.want_get),
h3=self.h3,
)

async def async_query(
Expand All @@ -238,6 +241,7 @@ async def async_query(
ignore_trailing=ignore_trailing,
verify=self.verify,
post=(not self.want_get),
h3=self.h3,
)


Expand Down

0 comments on commit 7c753e7

Please sign in to comment.