This commit is contained in:
jxxghp 2024-03-17 23:25:04 +08:00
parent 3f17e371c3
commit 75330a08cc
2 changed files with 2 additions and 4 deletions

View File

@ -0,0 +1 @@
from .doh import doh_query_json

View File

@ -38,9 +38,6 @@ _doh_resolvers = [
# https://support.quad9.net/hc/en-us
"9.9.9.9",
"149.112.112.112",
# https://support.opendns.com/hc/en-us
"208.67.220.220",
"208.67.222.222",
# https://developers.google.com/speed/public-dns/docs/doh
"dns.google",
# https://adguard-dns.io/public-dns.html
@ -139,7 +136,7 @@ def _doh_query(resolver: str, host: str) -> Optional[str]:
return None
def _doh_query_json(resolver: str, host: str) -> Optional[str]:
def doh_query_json(resolver: str, host: str) -> Optional[str]:
"""
使用给定的DoH解析器查询给定主机的IP地址
"""