Code Monkey home page Code Monkey logo

cloudflarespeedtest-rust's Introduction

⚡ Cloudflare Speed Test in Rust

English

banner

GitHub stars GitHub license

用 Rust 写的 Cloudflare Speed Test,练手用。

🔖 下载发行版

前往此处下载。

📦 文件选择

操作系统 文件选择
Windows cloudflare-speed-test-rust_[版本号]_x86_64-pc-windows-gnu.zip
Linux cloudflare-speed-test-rust_[版本号]_x86_64-unknown-linux-musl.tar.xzcloudflare-speed-test-rust_[版本号]_x86_64-unknown-linux-musl.tar.gz
Mac OS cloudflare-speed-test-rust_[版本号]_x86_64-apple-darwin.zip

⚡ 下载加速

可以参考 GhProxy

🏭 自构建方法

git clone https://github.com/lixiang810/cloudflare-speed-test-rust
cd cloudflare-speed-test-rust
cargo build -r
sudo ./target/release/cfst # Linux 下需要 sudo,Windows 下直接双击运行即可

🔧 使用自定义 IP 文件

文件格式

IPv4

173.245.48.0/20
141.101.64.0/18
131.0.72.0/22
...

IPv6

2606:4700:3000::/48
2606:4700:3001::/48
2606:4700:3002::/48
2606:4700:3003::/48
2606:4700:3004::/48
...

POSIX

sudo cfst -c <FILE>

Windows

cfst.exe -c <FILE>

❤️ 鸣谢项目 / 类似项目

  • IBMYes(已删除)—— bash 和 bat
  • better-cloudflare-ip(已删除)—— bash 和 bat
  • CloudflareSpeedTest —— Go

🔒 隐私说明

本项目会且只会与 Cloudflare 服务器进行 https 和 icmp 通信。

🤯 免责声明

想干嘛就干嘛。当然,后果自负。

📝 特殊说明

IPv4 的内置 IP

程序中内置了两份 IPv4 IP,其中一份会与 Cloudflare 的 IP 列表保持一致。另一份则是由一位用户发给我的,质量可能比 Cloudflare 官方的列表更高,但其获取方式与安全性都尚不明确,使用后果自负。

IPv6 的内置 IP

与 IPv4 时一样,本项目支持从 Cloudflare 的 IP 列表获取可用 IP,但这份 IPv6 列表中绝大部分 IP 是不可用的。

我从 CloudflareSpeedTest 获取了一份列表并硬编码到了程序中。这份列表的可用度很高,但其获取方式与安全性都尚不明确。

介意 IP 地址安全性的可以让程序从 Cloudflare 获取 IP(推荐测试轮数设为 20 轮以上),希望效率更高的可以让程序使用内置的 IP 列表。

🧑‍🏭 开源协议

AGPL-3.0

cloudflarespeedtest-rust's People

Contributors

beiyanyunyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cloudflarespeedtest-rust's Issues

Android Termux

Is there anyway to run it in termux? I have downloaded linux cfst and installed rust but running it with ./cfst gives error bash ./cfst bad adress.

有的时候测速不显示结果

Error: reqwest::Error { kind: Body, source: hyper::Error(Body, Custom { kind: UnexpectedEof, error: "unexpected EOF during chunk size line" }) }

报错是这个

Cutom IP's

Please add option for custom IP's from CF. I have a big list of them and want to try by myself.

ipv6 support

可以出个ipv6版本吗?

可以帮忙测试,谢谢。

间歇性程序卡顿

测试轮数为25,从官方获取的IP列表

image

image

在进行真连接测试时总会出现如图所示卡住不动的情况。

ip列表出现报错

23.205.114.226
23.201.40.226
23.52.64.226
23.217.206.226
125.56.185.226
125.56.186.226
184.87.174.226
104.121.65.226
2.18.64.226
23.210.192.226
96.6.156.226
23.52.104.226
2.16.190.226
23.59.74.226
23.204.123.226
23.64.130.226
173.222.44.226
23.64.132.226
23.64.134.226
118.214.188.226
104.99.183.226
104.106.203.226
184.50.81.226
104.118.25.226
2.16.150.226
2.19.210.226
23.208.98.226
23.216.134.226
189.247.211.226
189.247.192.226
23.44.8.226
23.194.202.226
23.219.166.226
189.247.206.226
184.85.219.226
96.17.174.226
23.43.250.226
23.212.238.226
95.100.36.226
96.6.158.226
95.101.228.226
2.23.14.226
23.210.32.226
92.123.247.226
104.75.4.226
2.16.87.226
23.60.76.226
23.62.148.226
23.194.186.226
23.213.194.226
104.71.128.226
96.7.208.226
23.3.102.226
23.6.196.226
23.47.122.226
23.57.116.226
23.195.128.226
23.195.130.226
23.200.52.226
96.6.118.226
104.112.2.226
23.54.66.226
23.217.190.226
23.217.201.226
23.222.230.226
23.213.206.226
92.122.158.226
104.107.108.226
104.70.232.226
104.94.31.226
61.19.11.226
184.84.250.226
23.53.118.226
104.77.206.226
23.45.170.226
125.56.184.226
23.204.96.226
95.101.168.226
2.23.174.226
95.100.240.226
23.209.92.226
23.52.136.226
23.58.132.226
23.59.224.226
23.192.176.226
23.43.92.226
23.43.94.226
23.2.34.226
184.25.60.226
204.2.137.226
23.51.20.226
23.195.38.226
23.195.30.226
23.219.174.226
23.49.14.226
23.200.34.226
23.213.176.226
23.221.234.226
23.14.82.226
23.44.238.226
23.52.88.226
23.194.222.226
104.120.54.226
173.222.46.226
184.84.178.226
23.210.12.226
128.177.166.226
23.195.20.226
23.195.28.226
23.38.192.226
23.38.198.226
23.41.6.226
23.208.220.226
23.211.110.226
23.46.181.226
23.47.182.226
104.87.92.226
104.87.94.226
184.25.48.226
23.15.0.226
23.36.146.226
23.213.250.226
104.112.228.226
184.28.226.226
184.29.12.226
23.43.102.226
23.63.68.226
23.72.182.226
23.209.118.226
23.223.58.226
96.17.54.226
104.71.219.226
2.20.62.226
2.23.85.226
23.5.160.226
23.197.22.226
23.212.186.226
23.213.240.226
2.18.22.226
2.18.92.226
184.28.232.226
184.28.236.226
23.55.112.226
92.123.153.226
23.203.175.226
184.85.234.226
23.198.3.226
184.85.240.226
23.216.66.226
47.100.124.138
47.101.62.249
47.117.40.153
101.132.47.83
101.132.135.33
106.14.176.3
106.15.47.185
139.224.50.73
112.126.72.158
47.96.121.50
121.41.65.69
112.74.93.147
120.24.251.97
120.79.202.70
8.210.67.251
8.210.97.53
8.210.141.223
8.210.159.196
8.210.225.63
8.217.35.145
8.218.8.205
8.218.22.46
8.218.50.208
8.218.57.225
8.218.80.89
47.52.78.112
47.52.101.237
47.52.247.248
47.57.2.202
47.57.7.18
47.57.14.118
47.57.182.4
47.57.233.126
47.57.245.232
47.91.207.96
47.242.28.250
47.242.33.105
47.242.193.142
47.242.204.235
47.242.209.173
47.242.254.50
47.243.74.153
47.243.146.249
47.243.203.233
47.243.245.195
8.219.91.92
47.241.189.75
149.129.58.149
8.209.218.195
8.209.220.34
8.209.241.73
8.209.252.35
47.74.11.57
47.74.51.30
47.91.14.110
47.254.81.145
47.252.25.210
47.252.26.216
47.252.29.54
149.129.8.215
211.148.23.218
23.205.114.226
23.201.40.226
23.52.64.226
23.217.206.226
125.56.185.226
125.56.186.226
184.87.174.226
104.121.65.226
2.18.64.226
23.210.192.226
96.6.156.226
23.52.104.226
2.16.190.226
23.59.74.226
23.204.123.226
23.64.130.226
173.222.44.226
23.64.132.226
23.64.134.226
118.214.188.226
104.99.183.226
104.106.203.226
184.50.81.226
104.118.25.226
2.16.150.226
2.19.210.226
23.208.98.226
23.216.134.226
189.247.211.226
189.247.192.226
23.44.8.226
23.194.202.226
23.219.166.226
189.247.206.226
184.85.219.226
96.17.174.226
23.43.250.226
23.212.238.226
95.100.36.226
96.6.158.226
95.101.228.226
2.23.14.226
23.210.32.226
92.123.247.226
104.75.4.226
2.16.87.226
23.60.76.226
23.62.148.226
23.194.186.226
23.213.194.226
104.71.128.226
96.7.208.226
23.3.102.226
23.6.196.226
23.47.122.226
23.57.116.226
23.195.128.226
23.195.130.226
23.200.52.226
96.6.118.226
104.112.2.226
23.54.66.226
23.217.190.226
23.217.201.226
23.222.230.226
23.213.206.226
92.122.158.226
104.107.108.226
104.70.232.226
104.94.31.226
61.19.11.226
184.84.250.226
23.53.118.226
104.77.206.226
23.45.170.226
125.56.184.226
23.204.96.226
95.101.168.226
2.23.174.226
95.100.240.226
23.209.92.226
23.52.136.226
23.58.132.226
23.59.224.226
23.192.176.226
23.43.92.226
23.43.94.226
23.2.34.226
184.25.60.226
204.2.137.226
23.51.20.226
23.195.38.226
23.195.30.226
23.219.174.226
23.49.14.226
23.200.34.226
23.213.176.226
23.221.234.226
23.14.82.226
23.44.238.226
23.52.88.226
23.194.222.226
104.120.54.226
173.222.46.226
184.84.178.226
23.210.12.226
128.177.166.226
23.195.20.226
23.195.28.226
23.38.192.226
23.38.198.226
23.41.6.226
23.208.220.226
23.211.110.226
23.46.181.226
23.47.182.226
104.87.92.226
104.87.94.226
184.25.48.226
23.15.0.226
23.36.146.226
23.213.250.226
104.112.228.226
184.28.226.226
184.29.12.226
23.43.102.226
23.63.68.226
23.72.182.226
23.209.118.226
23.223.58.226
96.17.54.226
104.71.219.226
2.20.62.226
2.23.85.226
23.5.160.226
23.197.22.226
23.212.186.226
23.213.240.226
2.18.22.226
2.18.92.226
184.28.232.226
184.28.236.226
23.55.112.226
92.123.153.226
23.203.175.226
184.85.234.226
23.198.3.226
184.85.240.226
23.216.66.226
47.100.124.138
47.101.62.249
47.117.40.153
101.132.47.83
101.132.135.33
106.14.176.3
106.15.47.185
139.224.50.73
112.126.72.158
47.96.121.50
121.41.65.69
112.74.93.147
120.24.251.97
120.79.202.70
8.210.67.251
8.210.97.53
8.210.141.223
8.210.159.196
8.210.225.63
8.217.35.145
8.218.8.205
8.218.22.46
8.218.50.208
8.218.57.225
8.218.80.89
47.52.78.112
47.52.101.237
47.52.247.248
47.57.2.202
47.57.7.18
47.57.14.118
47.57.182.4
47.57.233.126
47.57.245.232
47.91.207.96
47.242.28.250
47.242.33.105
47.242.193.142
47.242.204.235
47.242.209.173
47.242.254.50
47.243.74.153
47.243.146.249
47.243.203.233
47.243.245.195
8.219.91.92
47.241.189.75
149.129.58.149
8.209.218.195
8.209.220.34
8.209.241.73
8.209.252.35
47.74.11.57
47.74.51.30
47.91.14.110
47.254.81.145
47.252.25.210
47.252.26.216
47.252.29.54
149.129.8.215
211.148.23.218
23.205.114.226
23.201.40.226
23.52.64.226
23.217.206.226
125.56.185.226
125.56.186.226
184.87.174.226
104.121.65.226
2.18.64.226
23.210.192.226
96.6.156.226
23.52.104.226
2.16.190.226
23.59.74.226
23.204.123.226
23.64.130.226
173.222.44.226
23.64.132.226
23.64.134.226
118.214.188.226
104.99.183.226
104.106.203.226
184.50.81.226
104.118.25.226
2.16.150.226
2.19.210.226
23.208.98.226
23.216.118.163.249.175
3.112.21.102
159.100.206.88
167.179.32.53
84.17.38.132
101.79.166.248
111.11.200.197
140.207.80.6
140.207.80.7
111.161.121.75
119.36.161.40
211.72.35.110
211.72.35.119
60.249.92.67
125.227.91.177
211.75.11.74
220.130.80.178
220.130.80.179
45.64.22.5
45.64.22.6
45.64.22.21
45.64.22.22
45.64.22.23
45.64.22.37
45.64.22.38
45.64.22.53
45.64.22.55
45.64.22.56
202.175.16.226
64.227.168.107
64.227.183.154
68.183.94.7
134.209.148.128
143.110.241.138
134.122.68.51
138.197.183.219
161.35.22.117
164.90.171.127
164.90.186.169
68.183.186.41
68.183.227.206
68.183.229.35
68.183.238.244
103.253.145.66
103.253.146.88
104.248.156.149
128.199.73.44
128.199.74.255
128.199.89.36
128.199.115.44
128.199.120.0
128.199.123.79
128.199.124.73
128.199.134.132
128.199.151.73
128.199.151.203
128.199.160.55
128.199.170.14
128.199.173.196
128.199.186.30
128.199.205.62
128.199.213.135
128.199.218.41
128.199.221.58
128.199.226.180
128.199.241.231
128.199.248.207
134.209.111.207
139.59.96.208
139.59.106.112
139.59.109.132
139.59.112.47
139.59.115.14
139.59.115.141
139.59.117.46
139.59.117.102
139.59.120.239
139.59.122.41
139.59.255.80
157.230.37.20
157.230.38.134
157.230.38.150
157.230.43.162
157.230.44.228
157.230.47.140
157.230.244.32
157.230.250.120
157.230.255.35
157.245.55.99
157.245.55.229
157.245.58.16
157.245.151.90
157.245.154.240
157.245.155.54
157.245.158.72
157.245.159.129
157.245.194.55
157.245.200.211
157.245.203.184
157.245.204.172
157.245.205.18
159.65.140.25
159.89.194.149
159.89.197.102
159.89.206.60
159.89.206.91
159.223.33.76
159.223.33.202
159.223.36.111
159.223.37.69
159.223.37.209
159.223.39.193
159.223.40.106
159.223.42.182
159.223.44.148
159.223.47.145
159.223.49.88
159.223.56.166
159.223.65.200
159.223.74.9
159.223.76.72
159.223.77.196
159.223.78.58
159.223.84.176
159.223.88.206
159.223.89.83
159.223.89.167
165.22.49.150
165.22.51.75
165.22.53.177
165.22.54.138
165.22.55.166
165.22.62.178
165.22.63.44
165.22.97.225
165.22.98.26
165.22.101.168
165.22.107.35
165.22.240.101
165.22.241.138
165.22.241.186
165.22.251.202
165.22.255.119
165.232.166.39
167.71.204.33
167.71.205.218
167.71.210.59
167.71.211.148
167.71.215.30
167.71.218.212
167.71.220.57
167.99.64.75
167.99.73.48
167.99.73.50
167.172.66.146
167.172.72.8
167.172.77.0
167.172.94.50
174.138.20.46
174.138.20.119
174.138.20.144
174.138.21.107
174.138.22.166
174.138.25.113
174.138.27.89
178.128.54.33
178.128.60.82
178.128.85.212
178.128.86.164
178.128.94.121
178.128.97.138
178.128.109.181
178.128.120.68
178.128.126.74
178.128.217.125
178.128.222.3
178.128.223.15
188.166.177.150
188.166.178.50
188.166.179.160
188.166.180.237
188.166.183.171
188.166.186.249
188.166.188.95
188.166.190.84
188.166.191.119
188.166.210.34
188.166.211.226
188.166.218.185
188.166.223.9
188.166.234.235
188.166.241.187
188.166.242.82
188.166.245.107
188.166.249.24
188.166.250.93
188.166.254.252
206.189.38.213
206.189.47.246
206.189.89.61
206.189.93.170
206.189.95.122
206.189.144.229
206.189.145.160
206.189.150.238
209.97.163.37
209.97.166.39
209.97.168.133
209.97.170.215
209.97.174.160
209.97.175.246
164.92.76.27
143.198.99.5
143.198.111.54
147.182.238.61
147.182.249.217
198.199.92.198
134.209.39.177
159.65.161.124
161.35.12.1
167.172.243.247
138.68.137.228
138.68.182.166
138.68.182.208
188.166.150.197
64.227.79.182
82.196.10.46
159.65.192.80
167.99.39.4
174.138.12.107
174.138.106.137
188.166.43.137
188.166.84.210
50.7.250.210
66.90.91.51
50.7.158.2
50.7.151.16
198.255.45.130
23.237.33.106
23.237.58.50
198.16.65.10
34.80.176.75
34.92.10.35
34.96.177.249
35.241.72.154
35.240.250.92
35.190.229.93
34.145.145.76
34.150.133.11
34.150.180.124
123.202.159.42
219.76.13.166
219.76.13.175
219.76.13.177
219.76.13.178
219.76.13.180
219.76.13.181
219.76.13.186
49.0.249.188
119.12.173.19
159.138.130.126
159.138.163.99
110.238.110.254
159.138.89.106
159.138.100.251
110.43.204.172
194.195.115.88
45.79.250.57
139.162.171.77
139.177.178.52
172.104.225.185
194.195.241.48
194.195.243.129
194.195.244.81
194.195.244.234
194.233.162.78
194.233.170.170
45.118.132.34
45.118.132.246
45.118.133.220
139.162.3.82
139.162.7.101
139.162.9.249
139.162.10.22
139.162.15.149
139.162.18.224
139.162.22.233
139.162.23.44
139.162.25.51
139.162.25.56
139.162.29.197
139.162.32.99
139.162.33.77
139.162.38.38
139.162.39.93
139.162.41.100
139.162.41.194
139.162.42.32
139.162.47.28
139.162.50.18
139.162.50.52
139.162.50.83
139.162.51.63
139.162.53.204
139.162.55.35
139.162.56.247
139.162.57.64
139.162.59.209
139.162.61.177
139.177.184.26
139.177.184.68
139.177.185.65
139.177.186.99
139.177.189.196
139.177.189.246
170.187.226.75
170.187.227.116
170.187.230.163
172.104.32.27
172.104.32.237
172.104.35.201
172.104.41.156
172.104.42.126
172.104.43.103
172.104.43.178
172.104.44.189
172.104.46.22
172.104.47.252
172.104.48.192
172.104.50.50
172.104.52.47
172.104.52.71
172.104.54.106
172.104.56.39
172.104.56.175
172.104.58.85
172.104.61.236
172.104.63.24
172.104.63.202
172.104.63.203
172.104.162.51
172.104.162.128
172.104.163.93
172.104.165.72
172.104.166.28
172.104.169.17
172.104.169.126
172.104.172.28
172.104.175.27
172.104.177.106
172.104.178.44
172.104.178.216
172.104.180.93
172.104.181.155
172.104.181.234
172.104.182.26
172.104.182.241
172.104.183.104
172.104.184.44
172.104.184.222
172.104.187.108
172.104.188.155
172.104.189.85
172.104.189.210
172.104.191.67
172.105.112.20
172.105.113.9
172.105.113.196
172.105.113.218
172.105.116.157
172.105.117.79
172.105.117.225
172.105.118.157
172.105.121.96
172.105.122.229
172.105.123.71
172.105.123.83
172.105.123.221
172.105.124.126
172.105.126.169
172.105.127.89
192.46.224.30
192.46.224.148
192.46.225.220
192.46.226.84
192.46.228.213
192.46.231.66
192.46.231.116
192.53.112.211
192.53.113.68
192.53.114.232
192.53.116.13
192.53.116.180
192.53.118.81
192.53.118.146
192.53.118.234
192.53.172.57
192.53.173.82
192.53.175.26
103.29.69.39
103.29.70.19
103.29.70.138
103.29.70.180
103.29.70.254
103.29.71.18
139.162.65.88
139.162.66.235
139.162.67.194
139.162.68.84
139.162.68.174
139.162.68.197
139.162.68.211
139.162.69.151
139.162.69.221
139.162.69.237
139.162.70.62
139.162.70.129
139.162.72.61
139.162.73.19
139.162.75.14
139.162.76.33
139.162.76.48
139.162.79.62
139.162.79.168
139.162.82.177
139.162.83.13
139.162.84.220
139.162.85.161
139.162.85.216
139.162.87.201
139.162.87.211
139.162.90.47
139.162.90.95
139.162.90.122
139.162.90.177
139.162.91.61
139.162.91.95
139.162.91.137
139.162.99.8
139.162.106.190
139.162.106.229
139.162.108.19
139.162.108.64
139.162.108.73
139.162.109.73
139.162.109.235
139.162.110.148
139.162.110.238
139.162.113.59
139.162.115.92
139.162.118.235
139.162.120.77
139.162.121.24
139.162.127.148
139.162.127.218
139.162.127.240
170.187.209.208
172.104.65.125
172.104.65.140
172.104.66.10
172.104.66.12
172.104.66.18
172.104.66.57
172.104.66.139
172.104.66.188
172.104.66.201
172.104.66.247
172.104.67.5
172.104.67.40
172.104.67.62
172.104.67.98
172.104.67.140
172.104.67.235
172.104.67.236
172.104.68.171
172.104.70.53
172.104.70.250
172.104.74.86
172.104.75.237
172.104.75.241
172.104.80.96
172.104.80.126
172.104.82.32
172.104.82.61
172.104.82.238
172.104.83.76
172.104.83.96
172.104.83.111
172.104.84.42
172.104.84.90
172.104.84.249
172.104.84.251
172.104.86.17
172.104.86.113
172.104.86.185
172.104.87.218
172.104.88.59
172.104.88.111
172.104.89.35
172.104.89.45
172.104.89.65
172.104.93.95
172.104.93.184
172.104.94.24
172.104.94.161
172.104.94.214
172.104.94.226
172.104.96.149
172.104.96.199
172.104.96.205
172.104.96.210
172.104.96.212
172.104.99.76
172.104.100.175
172.104.101.205
172.104.101.231
172.104.105.25
172.104.105.168
172.104.106.35
172.104.106.98
172.104.107.44
172.104.107.81
172.104.107.136
172.104.109.7
172.104.109.26
172.104.109.177
172.104.110.8
172.104.110.33
172.104.110.76
172.104.110.152
172.104.112.203
172.104.112.241
172.104.115.163
172.104.117.199
172.104.120.36
172.104.120.61
172.104.120.128
172.104.120.162
172.104.120.230
172.104.120.234
172.104.121.53
172.104.124.177
172.104.124.180
172.104.127.194
172.105.192.199
172.105.192.217
172.105.192.237
172.105.192.243
172.105.193.7
172.105.193.14
172.105.195.97
172.105.195.144
172.105.196.102
172.105.197.77
172.105.197.175
172.105.197.188
172.105.197.209
172.105.198.10
172.105.198.103
172.105.200.128
172.105.200.145
172.105.200.197
172.105.200.243
172.105.201.53
172.105.201.131
172.105.201.155
172.105.201.156
172.105.204.77
172.105.204.84
172.105.204.88
172.105.204.198
172.105.208.226
172.105.209.80
172.105.209.165
172.105.212.27
172.105.212.80
172.105.212.204
172.105.214.222
172.105.215.183
172.105.216.79
172.105.216.224
172.105.216.239
172.105.217.7
172.105.219.47
172.105.219.88
172.105.220.166
172.105.221.45
172.105.221.60
172.105.221.223
172.105.221.253
172.105.222.63
172.105.222.77
172.105.222.211
172.105.223.150
172.105.225.252
172.105.226.83
172.105.226.207
172.105.227.134
172.105.227.253
172.105.228.14
172.105.228.153
172.105.229.26
172.105.229.52
172.105.229.120
172.105.229.186
172.105.229.197
172.105.230.7
172.105.230.246
172.105.234.4
172.105.234.38
172.105.234.224
172.105.234.249
172.105.235.174
172.105.235.176
172.105.236.68
172.105.236.168
172.105.237.67
172.105.237.214
172.105.237.231
172.105.238.20
172.105.238.164
172.105.238.194
172.105.239.161
172.105.239.237
172.105.239.241
172.105.240.8
45.79.160.47
45.79.168.17
23.239.23.168
45.33.53.179
45.33.56.249
45.56.80.205
50.116.5.148
192.81.132.184
45.33.11.226
109.74.205.88
178.79.190.253
87.101.92.215
87.101.92.216
87.101.92.217
87.101.92.219
87.101.92.224
87.101.92.230
185.94.190.36
37.120.193.106
37.120.193.166
89.38.224.58
89.38.224.66
89.38.224.70
89.38.224.134
89.38.224.142
89.38.224.150
185.93.183.45
185.189.115.138
185.189.115.164
37.120.151.163
37.120.151.164
37.120.154.103
79.110.55.248
194.187.251.103
185.87.150.54
84.39.112.158
37.120.150.134
37.120.150.218
37.120.219.198
37.120.219.238
37.120.219.250
45.152.182.122
62.133.44.18
62.133.44.22
62.133.44.26
62.133.44.30
79.110.53.50
79.110.53.54
79.110.53.62
79.110.53.194
79.110.53.198
79.110.54.34
79.110.54.38
79.110.54.42
79.110.54.46
89.41.26.22
89.41.26.26
194.37.97.26
194.37.97.118
194.37.97.122
194.37.97.126
194.110.112.194
194.110.112.202
194.110.112.206
194.110.112.250
38.132.118.150
38.132.118.153
2.58.47.6
194.79.31.29
2.58.45.4
185.93.182.30
185.93.182.46
185.93.182.54
20.187.127.205
20.205.47.151
20.205.96.65
20.239.73.184
52.139.179.60
104.208.76.182
20.212.129.241
23.97.60.43
20.27.49.41
173.82.134.173
152.67.249.87
192.9.138.74
192.9.225.9
192.9.234.197
129.159.194.144
129.159.201.12
129.159.254.178
130.61.19.188
130.61.35.160
130.61.36.90
130.61.36.176
130.61.39.126
130.61.43.88
130.61.104.45
130.61.131.86
130.61.138.130
130.61.174.20
130.61.180.252
130.61.212.181
130.61.217.65
130.61.222.152
130.61.239.45
130.162.36.98
130.162.43.7
130.162.54.139
130.162.209.127
130.162.212.97
130.162.212.144
130.162.226.112
130.162.230.21
130.162.237.48
132.145.233.223
132.145.244.164
132.145.248.23
138.2.136.119
138.2.138.100
138.2.138.244
138.2.142.107
138.2.146.180
138.2.158.50
138.2.159.5
138.3.242.180
138.3.253.231
141.144.227.58
141.144.232.193
141.144.234.36
141.144.243.3
141.144.249.102
141.147.0.156
141.147.8.48
141.147.14.171
141.147.15.35
141.147.26.73
141.147.27.12
141.147.57.192
144.24.162.72
144.24.170.118
144.24.188.150
144.24.191.100
152.70.167.27
152.70.185.173
152.70.185.248
158.101.165.222
158.101.168.10
158.101.169.43
158.101.179.246
158.101.189.45
193.122.4.203
193.122.5.33
193.122.6.213
193.122.10.169
132.145.126.165
132.226.9.101
138.2.18.190
138.3.217.209
140.238.34.163
141.147.164.74
150.230.203.116
150.230.221.227
158.101.95.249
158.101.150.139
168.138.209.206
138.2.48.42
140.83.83.23
141.147.155.142
152.69.200.154
152.69.204.164
168.138.52.23
132.145.22.50
193.123.66.14
193.123.88.67
129.154.55.155
138.2.121.118
144.24.80.127
146.56.109.28
150.230.254.2
152.67.211.226
129.154.200.217
129.154.208.209
130.162.136.43
132.226.171.158
132.226.229.180
132.226.239.254
140.238.3.250
146.56.129.112
146.56.130.242
146.56.149.205
146.56.162.25
146.56.166.153
146.56.186.202
152.70.236.162
152.70.250.4
193.122.107.30
51.222.30.240
144.217.87.174
144.217.161.39
167.114.67.25
192.99.54.60
192.99.201.221
51.75.70.34
51.89.107.252
51.79.254.182
37.187.98.185
51.38.44.17
51.255.43.76
5.135.110.142
51.38.13.55
51.75.188.3
51.75.188.6
152.228.191.232
152.228.206.122
164.132.68.14
54.37.234.80
54.37.235.201
146.59.14.96
146.59.14.96
139.99.141.145
139.99.236.163
139.99.237.62
135.148.4.33
147.135.10.209
147.135.70.217
51.195.140.208
145.239.254.54
198.244.148.214
103.200.114.8
66.154.105.8
66.212.20.3
96.44.161.3
155.94.198.8
155.94.199.153
173.254.249.244
192.161.60.131
192.161.62.236
204.44.96.137
204.44.110.196
204.44.111.102
204.44.111.254
173.205.94.4
173.205.94.11
104.223.102.254
173.44.61.144
43.128.1.112
43.128.9.149
43.154.48.232
43.154.99.51
43.154.163.154
101.32.208.182
119.28.17.125
129.226.178.235
150.109.9.197
124.156.225.184
43.153.31.207
49.51.182.103
49.51.187.142
101.33.66.110
106.75.218.112
113.31.124.147
106.75.104.152
152.32.229.149
106.75.164.110
106.75.172.137
23.91.98.239
101.36.116.40
123.58.212.234
152.32.131.107
165.154.27.29
165.154.75.40
152.32.201.9
107.150.111.124
123.58.201.213
107.172.242.3
107.174.131.244
155.138.128.135
155.138.157.131
45.32.12.12
139.180.198.185
45.63.114.83
45.77.236.204
45.94.43.102
45.80.189.30
147.78.178.242
149.57.162.7
149.57.163.105
149.57.164.16
149.57.164.60
193.111.31.57
78.142.193.106
149.57.168.50
45.136.187.80
23.248.168.220
128.14.140.254
128.14.142.176
128.14.162.48```

我希望能显示报错到底出现在哪个IP。。。。我根本无法排错

IP list integration

Hi, I want to send to you directly (to your e-mail) full list of Cloudflare IP's that I found but don't want to share it here.

My idea is to integrate those full IP list into your app without asking it from external server. Yes, I understand that Cloudflare updating their IP network, but it happens so rare.

使用自定义ip报错如下

thread 'main' panicked at 'called Result::unwrap() on an Err value: AddrParseError(())', src/utils/get_all_ips.rs:92:77 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Some ideas to improve user experience 一些提升用户体验的想法

The cloudflare preferred ip is generally used to accelerate cloudflare cdn access, and it is usually used to manually specify the dns result
cloudflare优选ip一般用于对cloudflare cdn访问的加速,通常会用到手动指定域名解析的dns结果

At present, the tool only outputs a result to the console or csv file, and further manual operations are required to complete the use of the preferred IP
目前工具只是输出一个结果到console或者csv文件中,需要进一步手动操作才能够完成对优选IP的使用

One of my thoughts is: Is it possible to consider saving the preferred IP by updating the dns record
我的想法之一是:是不是可以考虑以更新dns记录的方式,将优选IP保存下来

Another idea is: random selection of 4096 IPs or more each time, whether a better IP can be screened depends largely on luck. Can we consider searching from all IP pools, but we don’t have to wait until all IPs are detected. In the middle, we only need a current optimal solution, which is usually understandable and acceptable.
另外一个想法是:每次随机4096个或者更多的IP进行选择,能否筛选到较好的IP,很大程度上依赖于运气。能不能考虑从所有IP池中查找,但不必等到所有IP都被检测完成,在中间时刻,我们只需要一个当前最优解旧可以了,这通常也是能够被理解和接受的

The third idea is to save the local cache, that is, save some IPs with better speed except the best IP in the last test. In the next round of testing, we can choose from these IPs. Similarly The reason is that you can also remove the IP addresses that cannot be connected for 3 or more times.
第三个想法是保存本地缓存,也就是将上一次测试中,除了最好的那个IP以外的其他速度较好的一些IP保存下来,下一轮测试,我们可以优选从这些IP中选择,同样道理,也可以将3次或者以上都无法连接的IP地址剔除掉

What is your opinion on these proposals of mine?
针对我的这些提议,您有什么看法?

运行失败

[1] 158534 segmentation fault (core dumped)

建议架构切换为 gnu

同时增加更多cpu支持 例如32位 arm64

Is it possible to get the latest ip address range from cloudflare instead of the existing hardcoded pattern?

Is it possible to get the latest ip address range from cloudflare instead of the existing hardcoded pattern?
是否可以从 cloudflare 获取最新的 IP 地址范围,而不是现有的硬编码模式?

Loaded from cloudflare via https request when the program starts, it can cope with changes well without modifying the source code
在程序启动的时候通过https请求从cloudflare加载,可以很好的应对变更,而不用修改源代码

Official IP address range release and update page address:
官方ip地址范围发布以及更新情况页面地址:
https://www.cloudflare.com/ips/

url for program fetch (newline delimited):
用于程序程序获取的url(换行符分隔):
https://www.cloudflare.com/ips-v4
and 和
https://www.cloudflare.com/ips-v6

built-in IPs that have been removed can be eliminated based on the above
甚至都可以基于上述内容,剔除掉已经被移除的内置IP

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.