Skip to content

Commit

Permalink
修复错误
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaHOH committed Mar 19, 2021
1 parent 8944c85 commit 21e8975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion local/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.8.0'
__version__ = '3.8.1'
4 changes: 2 additions & 2 deletions local/common/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ def check_servers(servers, local):

dns_remote_servers = servers_2_addresses(GC.DNS_SERVERS, 53)
dns_remote_servers = check_servers(dns_remote_servers, False) or \
servers_2_addresses('1.1.1.1|1.0.0.1'.split('|'))
servers_2_addresses('1.1.1.1|1.0.0.1'.split('|'), 53)
dns_local_servers = servers_2_addresses(GC.DNS_LOCAL_SERVERS, 53)
dns_local_servers = check_servers(dns_local_servers, True) or \
servers_2_addresses('114.114.114.114|114.114.115.115'.split('|'))
servers_2_addresses('114.114.114.114|114.114.115.115'.split('|'), 53)
dns_remote_local_servers = check_servers(dns_remote_servers, True)
dns_local_prefer = (GC.DNS_LOCAL_PREFER or dns_remote_local_servers) and \
any(d == 53 for _, d in dns_remote_servers)
Expand Down

0 comments on commit 21e8975

Please sign in to comment.