浏览代码

fix(run): domain name uniformly lowercase to avoid problems (#433)

老周部落 1 年之前
父节点
当前提交
530d14c35f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      run.py

+ 1 - 0
run.py

@@ -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: