diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 4175265040c..f6fdfa71f3b 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -5,11 +5,11 @@ on: branches: - master schedule: - - cron: '*/16 * * * *' + - cron: '*/720 * * * *' env: UPDATE_IPV4: true - UPDATE_IPV6: false + UPDATE_IPV6: true jobs: build: runs-on: ubuntu-latest diff --git a/cf2dns.py b/cf2dns.py index cc1394942f3..15177b04a8b 100644 --- a/cf2dns.py +++ b/cf2dns.py @@ -21,7 +21,7 @@ } #解析生效条数 免费的DNSPod相同线路最多支持2条解析 -AFFECT_NUM = 2 +AFFECT_NUM = 50 #DNS服务商 如果使用DNSPod改为1 如果使用阿里云解析改成2 如果使用华为云解析改成3 DNS_SERVER = 1 @@ -33,7 +33,7 @@ REGION_ALI = 'cn-hongkong' #解析生效时间,默认为600秒 如果不是DNS付费版用户 不要修改!!! -TTL = 600 +TTL = 60 #v4为筛选出IPv4的IP v6为筛选出IPv6的IP TYPE = 'v4' @@ -191,4 +191,4 @@ def main(cloud): cloud = AliApi(SECRETID, SECRETKEY, REGION_ALI) elif DNS_SERVER == 3: cloud = HuaWeiApi(SECRETID, SECRETKEY, REGION_HW) - main(cloud) \ No newline at end of file + main(cloud) diff --git a/cf2dns_actions.py b/cf2dns_actions.py index a13d09fc3b2..4e4b3cb841d 100644 --- a/cf2dns_actions.py +++ b/cf2dns_actions.py @@ -19,7 +19,7 @@ SECRETID = os.environ["SECRETID"] #'AKIDV**********Hfo8CzfjgN' SECRETKEY = os.environ["SECRETKEY"] #'ZrVs*************gqjOp1zVl' #默认为普通版本 不用修改 -AFFECT_NUM = 2 +AFFECT_NUM = 1 #DNS服务商 如果使用DNSPod改为1 如果使用阿里云解析改成2 如果使用华为云解析改成3 DNS_SERVER = 1 #如果试用华为云解析 需要从API凭证-项目列表中获取 @@ -182,4 +182,4 @@ def main(cloud): cloud = AliApi(SECRETID, SECRETKEY, REGION_ALI) elif DNS_SERVER == 3: cloud = HuaWeiApi(SECRETID, SECRETKEY, REGION_HW) - main(cloud) \ No newline at end of file + main(cloud)