Commit graph

13 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 0c6eb9a9eb feat: use log crate instead of println
To make debugging easier, this switches to env_logger and the log crate.
This helps with getting to the output of the underlying crates this
builds on.

BREAKING CHANGE: this changes the output, so if you parse the output in
your scripts, then this might break it.
2020-04-20 23:21:01 +02:00
Jan Christian Grünhage 37bd9b1f24 fix: only write IP cache after API call
previously, when the API call would fail (for whatever reason),
the cached IP had already been written, so following executions
wouldn't attempt to update the IP, even though the previous
attempt had failed.
2020-04-20 23:13:42 +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 cfd5cb9da9 feat: Use anyhow for error handling 2020-03-22 22:10:50 +01:00
Rostislav Raykov 8cbad9d7f1 feat: Add option to pass a config file 2019-09-23 10:58:41 +02:00
Rostislav Raykov 39cc9223d2 style: Format the code with cargo fmt 2019-09-18 11:12:50 +02:00
Rostislav Raykov 5c19f6e387 docs: Update README with CLI arguments 2019-09-18 10:15:11 +02:00
Rostislav Raykov 867f5dfe53 feat: Remove one printed message 2019-09-17 21:55:53 +02:00
Rostislav Raykov 1e04c69d5e refactor: Remove the unused log command argument 2019-09-17 21:45:50 +02:00
Rostislav Raykov b1f1c63585 feat: Initial implementation of the whole flow 2019-09-17 21:43:17 +02:00
Rostislav Raykov 5c9ec1029b feat: Scaffold the CLI interface and use dependencies 2019-09-17 17:36:00 +02:00
Rostislav Raykov 4feaf4a17d feat: Initial commit
Basically the output of cargo init with some
extra metadata added to the package
2019-09-17 13:44:12 +02:00