Add Snell script with Sub-Store JSON output

This commit is contained in:
OpenClaw
2026-07-05 07:51:11 +00:00
parent 28d5a27ab5
commit e4e5b6a46c
2 changed files with 2624 additions and 0 deletions

23
scripts/snell-README.md Normal file
View File

@@ -0,0 +1,23 @@
# Snell.sh Mango fork
Based on upstream `https://raw.githubusercontent.com/xOS/Snell/master/Snell.sh` fetched 2026-07-05.
Changes:
- `viewConfig` still prints Surge config.
- Adds Mihomo/Nikki JSON node output for Snell v1-v5, compatible with Sub-Store JSON input/output.
- For Snell v6, prints a warning instead of invalid Mihomo config because current MetaCubeX docs only list Snell v1/2/3/4/5 support.
- `updateShell` can be pointed at your own raw script URL using environment variables:
- `SNELL_SCRIPT_URL=https://gitea.example.com/user/repo/raw/branch/main/Snell.sh`
- `SNELL_SCRIPT_CN_URL=https://gitea.example.com/user/repo/raw/branch/main/Snell.sh`
Install example after publishing to Gitea:
```bash
wget -O snell.sh --no-check-certificate https://YOUR-GITEA/user/repo/raw/branch/main/Snell.sh && chmod +x snell.sh && ./snell.sh
```
Example Mihomo/Sub-Store JSON node:
```json
{"name":"vps","server":"1.2.3.4","port":2345,"psk":"secret","version":5,"reuse":true,"tfo":true,"type":"snell"}
```

2601
scripts/snell.sh Normal file

File diff suppressed because it is too large Load Diff