Skip to content

Commit a907d1b

Browse files
committed
doc
1 parent 48ec5a0 commit a907d1b

File tree

2 files changed

+20
-42
lines changed

2 files changed

+20
-42
lines changed

README.MD

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
[中文版](./README_zh.MD) | [English](./README.MD)
2-
# Cloudflare IPv4 Address Optimizer
32

4-
This Rust-based application is designed to optimize your Cloudflare experience by helping you identify the IPv4 address with the lowest latency. The program operates in two stages, scanning all of Cloudflare's IP segments and ultimately identifying the IP address that responds the fastest.
3+
# 📖 Introduction
4+
Scan all IP nodes of CloudFlare to find the fastest IP node.
55

6-
## Overview
6+
# 🔨️ Get Started
7+
```bash
8+
git clone https://github.com/golangboy/fast-cloudflare
9+
cd fast-cloudflare
10+
cargo run .
11+
```
12+
> Please ensure that you have properly installed the Rust environment.
713
8-
- **Stage 1:** The application initiates a TCP connection to each IPv4 address provided by Cloudflare on port 80. All addresses that are reachable are stored for the next stage.
9-
- **Stage 2:** The application sends a ping request to each IP address that was reachable in the first stage. The response times are recorded, and the IP address with the lowest latency is identified.
10-
11-
The results of each stage are stored in a `result` directory that the application creates. After the first stage, reachable IP addresses are stored in `live_ip.txt`. After the second stage, the ping results are stored in `ping_ip.txt`.
12-
13-
## Usage
14-
15-
To run this program, you need Rust and Cargo installed on your machine. Once these are installed, you can run the program using the command `cargo run`.
16-
17-
Please note that the `live_ip.txt` and `ping_ip.txt` files will be created in the `result` directory, which is automatically created by the program in the location where it is run.
18-
19-
## Contributing
20-
21-
Contributions are welcome! Please feel free to submit a pull request.
22-
23-
## License
24-
25-
This project is licensed under the terms of the MIT license.
14+
The scan results will be saved under result\sorted_ping_ip.txt

README_zh.MD

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
[中文版](./README_zh.MD) | [English](./README.MD)
2-
# Cloudflare IPv4 地址优化器
32

4-
这是一个基于 Rust 的应用程序,旨在通过帮助您找出延迟最低的 IPv4 地址来优化您的 Cloudflare 体验。该程序分两个阶段进行操作,扫描 Cloudflare 的所有 IP 段,最终确定响应最快的 IP 地址。
3+
# 📖 介绍
4+
对CloudFlare的所有IP节点进行扫描,找出最快的IP节点
55

6-
## 概述
6+
# 🔨️ 开始
7+
```bash
8+
git clone https://github.com/golangboy/fast-cloudflare
9+
cd fast-cloudflare
10+
cargo run .
11+
```
12+
> 请确保你安装好了Rust环境
713
8-
- **阶段1:** 应用程序对 Cloudflare 提供的每个 IPv4 地址在80端口启动一个 TCP 连接。所有可达的地址都会被存储以备下一阶段使用。
9-
- **阶段2:** 应用程序向第一阶段中可达的每个 IP 地址发送 ping 请求。记录响应时间,并确定延迟最低的 IP 地址。
10-
11-
每个阶段的结果都存储在应用程序创建的 `result` 目录中。第一阶段结束后,可达的 IP 地址存储在 `live_ip.txt` 中。第二阶段结束后,ping 结果存储在 `ping_ip.txt` 中。
12-
13-
## 使用方法
14-
15-
要运行此程序,您需要在您的机器上安装 Rust 和 Cargo。一旦这些都安装好了,您可以使用 `cargo run` 命令来运行程序。
16-
17-
请注意,`live_ip.txt``ping_ip.txt` 文件将在 `result` 目录中创建,该目录是由程序在运行的位置自动创建的。
18-
19-
## 贡献
20-
21-
欢迎提供贡献!请随时提交 pull 请求。
22-
23-
## 许可证
24-
25-
本项目根据 MIT 许可证的条款进行许可。
14+
扫描结果将保存在`result\sorted_ping_ip.txt`

0 commit comments

Comments
 (0)