Skip to content

Commit

Permalink
fix(run): domain name uniformly lowercase to avoid problems
Browse files Browse the repository at this point in the history
  • Loading branch information
laozhoubuluo committed Apr 5, 2024
1 parent 28471a3 commit bbc54b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def update_ip(ip_type, cache, dns, proxy_list):
record_type = (ip_type == '4') and 'A' or 'AAAA'
update_fail = False # https://github.com/NewFuture/DDNS/issues/16
for domain in domains:
domain = domain.lower() # https://github.com/NewFuture/DDNS/issues/431
if change_dns_record(dns, proxy_list, domain=domain, ip=address, record_type=record_type):
update_fail = True
if cache is not False:
Expand Down

0 comments on commit bbc54b7

Please sign in to comment.