Skip to content

Commit

Permalink
fix: proxy config (NewFuture#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxbit authored May 16, 2023
1 parent e18188d commit 4fcd03b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def get_ip(ip_type, index="default"):
def change_dns_record(dns, proxy_list, **kw):
for proxy in proxy_list:
if not proxy or (proxy.upper() in ['DIRECT', 'NONE']):
dns.PROXY = None
dns.Config.PROXY = None
else:
dns.PROXY = proxy
dns.Config.PROXY = proxy
record_type, domain = kw['record_type'], kw['domain']
print('\n%s %s(%s) ==> %s [via %s]' %
(asctime(), domain, record_type, kw['ip'], proxy))
Expand Down

0 comments on commit 4fcd03b

Please sign in to comment.