Skip to content

Commit

Permalink
get RECORD_TYPE by sys.argv[2]
Browse files Browse the repository at this point in the history
  • Loading branch information
z0z0r4 authored Jan 3, 2023
1 parent 2b3e120 commit 61d4e75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cf2dns_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def log_info(msg: str):
# 解析生效时间,默认为600秒 如果不是DNS付费版用户 不要修改!!!
TTL = 600
# A为筛选出IPv4的IP AAAA为筛选出IPv6的IP
RECORD_TYPE = 'A'
if len(sys.argv) >= 3:
RECORD_TYPE = sys.argv[2]
else:
RECORD_TYPE = "A"


def get_optimization_ip():
Expand Down

0 comments on commit 61d4e75

Please sign in to comment.