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

Bug/fix minor bugs #13

Merged
merged 3 commits into from
Jun 18, 2023
Merged

Bug/fix minor bugs #13

merged 3 commits into from
Jun 18, 2023

Conversation

jmrplens
Copy link
Owner

Fix #12 and more

jmrplens added 3 commits June 18, 2023 21:51
This commit refactors the get_dns_record_ip function to retrieve the dns record id, current proxy status, and IP address from Cloudflare's API. It also adds an api_validation function to validate the response from the API.
This commit refactors the update-cloudflare-records.sh script to allow enabling or disabling of IPv4 and IPv6 for each domain. The get_domain_settings function now sets enable_ipv4 and enable_ipv6 instead of domain_ipv4 and domain_ipv6, respectively. The get_ip function now takes in enable_ipv4 and enable_ipv6 as arguments instead of domain_ipv4 and domain_ipv6. Finally, the get_dns_record_ip function checks if enable_ipv4 or enable_ipv6 is true before attempting to read A or AAAA records from Cloudflare's API, respectively.
Update Cloudflare API functions and DNS record validation
@jmrplens jmrplens merged commit 2e9fe57 into main Jun 18, 2023
@jmrplens jmrplens deleted the BUG/Fix_minor_bugs branch June 18, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Error when set as no proxied when dns is proxied
1 participant