feat: serve cli download packages
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
```bash
|
||||
tar -xzf netstable-<version>-linux-amd64.tar.gz
|
||||
chmod +x netstable
|
||||
./netstable -listen 0.0.0.0:18080 -data /var/lib/netstable/records.jsonl -bandwidth-limit-mbps 30
|
||||
./netstable -listen 0.0.0.0:18080 -data /var/lib/netstable/records.jsonl -downloads-dir /var/lib/netstable/downloads -bandwidth-limit-mbps 30
|
||||
```
|
||||
|
||||
CLI 客户端测试:
|
||||
@@ -20,6 +20,12 @@ CLI 客户端测试:
|
||||
./netstable client -server http://<server-ip>:18080 -duration 30
|
||||
```
|
||||
|
||||
一键下载并测试:
|
||||
|
||||
```bash
|
||||
arch=$(uname -m); case "$arch" in x86_64) arch=amd64;; aarch64|arm64) arch=arm64;; *) echo "unsupported arch: $arch"; exit 1;; esac; tmp=$(mktemp -d); curl -fsSL 'http://<server-ip>:18080/downloads/netstable-linux-'"$arch"'.tar.gz' | tar -xz -C "$tmp" && chmod +x "$tmp/netstable" && "$tmp/netstable" client -server 'http://<server-ip>:18080' -duration 30
|
||||
```
|
||||
|
||||
CLI `iperf3` 测试,要求客户端和服务端都安装 `iperf3`:
|
||||
|
||||
```bash
|
||||
@@ -39,5 +45,6 @@ shasum -a 256 -c checksums.txt
|
||||
- 保存脱敏后的用户 IP、地区、运营商、测试摘要和完整样本曲线。
|
||||
- SSE 心跳辅助连接用于显示连接状态。
|
||||
- CLI `iperf3` 模式通过服务端随机一次性高端口测速,并复用单用户测速锁。
|
||||
- 网页可复制一键下载测试命令,用户服务器无需预先安装 `netstable`。
|
||||
- 内置 ip2region IPv4 数据库,优先离线解析地区和运营商。
|
||||
- 嵌入式 Web 页面,无需 Node、PHP 或数据库。
|
||||
|
||||
Reference in New Issue
Block a user