Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提交 #141

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cf2dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

#解析生效条数 免费的DNSPod相同线路最多支持2条解析
AFFECT_NUM = 2
AFFECT_NUM = 50

#DNS服务商 如果使用DNSPod改为1 如果使用阿里云解析改成2 如果使用华为云解析改成3
DNS_SERVER = 1
Expand All @@ -33,7 +33,7 @@
REGION_ALI = 'cn-hongkong'

#解析生效时间,默认为600秒 如果不是DNS付费版用户 不要修改!!!
TTL = 600
TTL = 60

#v4为筛选出IPv4的IP v6为筛选出IPv6的IP
TYPE = 'v4'
Expand Down Expand Up @@ -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)
main(cloud)
4 changes: 2 additions & 2 deletions cf2dns_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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凭证-项目列表中获取
Expand Down Expand Up @@ -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)
main(cloud)