Commit graph

12 commits

Author SHA1 Message Date
Jan Christian Grünhage 5f25f85a5e chore: fork and rename
I'm forking this, with the following changes:
 - daemon instead of CLI tool run via cron
 - mandatory config file
 - use cloudflare crate instead of home grown API client
 - IPv6 support
 - CNPLv6+ licensed instead of MIT licensed
2021-05-23 15:33:28 +02:00
Jan Christian Grünhage ec8b893f6a feat: migrate to api tokens
Cloudflare's v4 API provides three ways of authenticating,
with the API tokens being the new, standard conform, recommended
way. This patch removes the use of the old auth_key + email combo
and replaces it with API tokens.

BREAKING CHANGE: auth keys can't be used anymore, switch to api tokens
2020-04-20 23:04:31 +02:00
Rostislav Raykov 143bbb7a33 feat: Better report different HTTP status responses 2020-03-22 23:30:42 +01:00
Rostislav Raykov 7ceb5c3c50 feat: Update type of cloudflare response
Turns out that the results field can be null
2020-03-22 23:30:10 +01:00
Rostislav Raykov cfd5cb9da9 feat: Use anyhow for error handling 2020-03-22 22:10:50 +01:00
Rostislav Raykov 536b184693 feat: Update usage to work with new versions of libs 2020-03-21 22:43:04 +01:00
Rostislav Raykov b654f4523e fix: Check the response object before trying to extract a dns record id from it 2019-09-23 10:58:04 +02:00
Rostislav Raykov 39cc9223d2 style: Format the code with cargo fmt 2019-09-18 11:12:50 +02:00
Rostislav Raykov a61da424bf fix: Correctly parse update response 2019-09-17 21:42:56 +02:00
Rostislav Raykov 6f5890a81b fix: Remove whitespace from current IP 2019-09-17 18:28:26 +02:00
Rostislav Raykov 8e938e3299 refactor: Some renaming and using the status of the update operation 2019-09-17 18:00:30 +02:00
Rostislav Raykov f01cba4dc5 feat: Add helper functions for network requests and caching 2019-09-17 17:33:35 +02:00