Skip to content

Commit

Permalink
fix(login): add more DoH servers
Browse files Browse the repository at this point in the history
- 新增 更多 DNS over HTTPS 查询服务器
  • Loading branch information
txperl committed Nov 14, 2021
1 parent 96f0345 commit 19f0173
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .pkg/r_pixivpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ def require_appapi_hosts(self, hostname="app-api.pixiv.net", timeout=3):
"""
URLS = (
"https://1.0.0.1/dns-query",
"https://1.1.1.1/dns-query",
"https://dns.alidns.com/dns-query",
"https://doh.dns.sb/dns-query",
"https://doh.opendns.com/dns-query",
"https://[2606:4700:4700::1001]/dns-query",
"https://[2606:4700:4700::1111]/dns-query",
"https://cloudflare-dns.com/dns-query",
"https://dns.google/dns-query"
)
params = {
"ct": "application/dns-json",
Expand Down
7 changes: 5 additions & 2 deletions app/lib/common/login_helper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ def check_network(self, URLS=None, silent=False, proxy_="auto"):
URLS = (
"https://public-api.secure.pixiv.net",
"https://1.0.0.1/dns-query",
"https://1.1.1.1/dns-query",
"https://dns.alidns.com/dns-query",
"https://doh.dns.sb/dns-query",
"https://doh.opendns.com/dns-query",
"https://[2606:4700:4700::1001]/dns-query",
"https://[2606:4700:4700::1111]/dns-query",
"https://cloudflare-dns.com/dns-query"
"https://cloudflare-dns.com/dns-query",
"https://dns.google/dns-query"
) if URLS is None else URLS
proxy = self.STATIC.util.getSystemProxy(platform.system()) if proxy_ == "auto" else proxy_
if silent is False:
Expand Down
2 changes: 1 addition & 1 deletion app/lib/core/biu.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@interRoot.bind("biu", "LIB_CORE")
class core_module_biu(interRoot):
def __init__(self):
self.ver = 202000
self.ver = 202001
self.place = "local"
self.sysPlc = platform.system()
self.apiType = "public"
Expand Down

0 comments on commit 19f0173

Please sign in to comment.