cf-dynamic-best

Crates.iocf-dynamic-best
lib.rscf-dynamic-best
version0.1.9
sourcesrc
created_at2023-07-02 13:06:17.300874
updated_at2023-07-10 06:59:26.114027
descriptionA tool to automatically select best Cloudflare IP for a Cloudflare DNS record
homepagehttps://github.com/JeffersonQin/cloudflare-dynamic-best
repositoryhttps://github.com/JeffersonQin/cloudflare-dynamic-best
max_upload_size
id906002
size66,445
Haoyun Qin (JeffersonQin)

documentation

README

Dynamic Best Cloudflare (自动设置 Cloudflare 优选 IP)

中文 README

A tool to automatically select best Cloudflare IP for a Cloudflare DNS record.

Install

Install the binary via cargo and crates.io,

cargo install cf-dynamic-best

Then, get CloudflareSpeedTest ready. Following is the installation guide from their repository, different platform may differ, the following is the guide for linux and amd64.

mkdir CloudflareST

cd CloudflareST

# select for your platform and arch in their release page
wget -N https://github.com/XIU2/CloudflareSpeedTest/releases/download/v2.2.4/CloudflareST_linux_amd64.tar.gz

tar -zxf CloudflareST_linux_amd64.tar.gz

chmod +x CloudflareST

Usage

$ cf-dynamic-best  --help
A tool to automatically set best Cloudflare IP for a Cloudflare DNS record

Usage: cf-dynamic-best --config-dir <FILE> --cloudflare-st-dir <FILE>

Options:
  -c, --config-dir <FILE>         
  -s, --cloudflare-st-dir <FILE>  
  -h, --help                      Print help
  -V, --version                   Print version
  • --config is the file for config path.
  • --cloudflare-st-dir is the directory where CloudflareST binary file is located.

Configuration

Take a look at config.template.en.yaml for configuration file with English comment.

Commit count: 13

cargo fmt