Skip to content

Commit

Permalink
Update cf2dns_actions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
z0z0r4 authored Jan 3, 2023
1 parent fb0e297 commit 8514bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf2dns_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def log_info(msg: str):

def get_optimization_ip():
try:

response = requests.post('https://api.hostmonit.com/get_optimization_ip', json={
"key": KEY, "type": "v4" if RECORD_TYPE == "A" else "v6"}, headers={'Content-Type': 'application/json'})
if response.status_code == 200:
Expand Down Expand Up @@ -102,6 +101,7 @@ def main(cloud):
if cfips == None:
log_error(f'GET CLOUDFLARE IP ERROR')
return
print(cfips)
cf_cmips = cfips["info"]["CM"]
cf_cuips = cfips["info"]["CU"]
cf_ctips = cfips["info"]["CT"]
Expand Down

0 comments on commit 8514bb9

Please sign in to comment.