1 Commits
6 changed files with 3514 additions and 33526 deletions

No files matched your search

@@ -1,61 +0,0 @@
name: Auto-close empty PRs
permissions:
issues: write
pull-requests: write
on:
pull_request_target:
# 只在新建、重新打开、草稿转正式时检查 PR 说明
types:
- opened
- reopened
- ready_for_review
jobs:
check-pr:
name: Close PRs with empty or short descriptions
runs-on: ubuntu-latest
# 草稿 PR 先不处理,等作者准备好再检查
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Close PR when description is empty or too short
uses: actions/github-script@v7
with:
script: |
const pr = context.payload.pull_request;
// 去掉空白和 HTML 注释,避免“看起来写了,实际上没写内容”
const description = (pr.body || '')
.replace(/<!--[\s\S]*?-->/g, ' ')
.replace(/\s+/g, ' ')
.trim();
const descriptionLength = Array.from(description).length;
core.info(`Description length: ${descriptionLength}`);
// 说明超过 8 个字符,就视为已经写了基本内容
if (descriptionLength > 8) {
core.info('Description is long enough. No action needed.');
return;
}
// 说明为空或太短,先留言提醒,再自动关闭 PR
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
body: [
'🤖 这个 PR 因为说明为空,或说明过短,已被自动关闭。',
'',
'请补充这次改了什么、为什么要改,再重新提交 PR。',
].join('\n'),
});
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr.number,
state: 'closed',
});
+19 -23
View File
@@ -15,30 +15,26 @@ jobs:
if: ${{ github.event.repository.fork }}
steps:
# Step 1: run a standard checkout action
- name: Checkout target repo
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: main
uses: actions/checkout@v3
# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: cmliu/edgetunnel
upstream_sync_branch: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
# Set test_mode true to run tests instead of the true action!!
test_mode: false
- name: Sync check
if: failure()
run: |
git config user.name "GH Action - Upstream Sync"
git config user.email "action@github.com"
git remote add upstream https://github.com/cmliu/edgetunnel.git
git fetch upstream main
if git diff --quiet HEAD upstream/main; then
# 内容和上游一致,直接对齐,顺带清理历史分叉留下的多余 merge commit
git reset --hard upstream/main
git push --force-with-lease origin main
else
# 有本地修改,保持原来的合并方式,不覆盖任何人的改动
if ! git pull --no-rebase upstream main; then
echo "[Error] 合并上游变更产生冲突,自动同步已暂停,请手动 Sync Fork 并解决冲突。"
echo "[Error] Merge conflict detected while syncing upstream. Please sync your fork manually and resolve the conflicts."
exit 1
fi
git push origin main
fi
echo "[Error] 由于上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次,详细教程请查看项目README.md "
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the project README.md for instructions. "
exit 1
-2
View File
@@ -1,7 +1,6 @@
# Demo 目录
demo/
tmp/
.workbuddy/
# 依赖包
node_modules/
@@ -13,7 +12,6 @@ pnpm-lock.yaml
dist/
build/
*.wasm
GRAINTCP_*
# Cloudflare Workers
.wrangler/
-267
View File
@@ -1,267 +0,0 @@
## [2.1.20261008222327] - 2026-10-08 22:23:27
### Debug
- 修复 **报错1101** 信仰。
## [2.1.20260923155300] - 2026-09-23 15:53:00
### Debug
- 修复 **本机标识**:统一头部与查询键的获取逻辑,避免 XHTTP padding、gRPC 请求识别及优选请求之间的标识不一致。
- 优化 **优选请求**:向优选 API、优选订阅生成器和订阅转换请求的 User-Agent 中追加本机标识,提升请求关联性。
### Change
- 优化 **版本识别**:版本查询接口统一返回数字版本号。
- 优化 **订阅请求**:向优选 API、优选订阅生成器和订阅转换请求的 User-Agent 中追加当前版本号,便于服务端识别版本。
## [2.1.20260922200117] - 2026-09-22 20:01:17
### Debug
- 修复 **汇聚订阅**:统一设置 User-Agent,提升请求行为的一致性。
## [2.1.20260907040834] - 2026-09-07 04:08:34
### ADD
- 新增 **订阅转换配置**:**展开规则全文**选项。
## [2.1.20260904162413] - 2026-09-04 16:24:13
### ADD
- 新增 **ALPN** 字段支持:节点链接现已自动携带 ALPN 参数,适配更多客户端场景。
### Debug
- 修复 **HTTPS 代理**:上游服务器请求客户端证书(CertificateRequest)时握手失败的问题,现已回送空证书正常完成握手。[提交](https://github.com/cmliu/CF-Workers-CheckSocks5/commit/ae93bc28462a6df03795143a5caa85f717ba231a)
## [2.1.20260811144522] - 2026-08-11 14:45:22
### Change
- 优化 **XHTTP** 上行传输:新增数据合包机制,小块数据合并后再统一发送,减少小包频繁写入,降低资源开销,大文件上传更流畅。
## [2.1.20260810030901] - 2026-08-10 03:09:01
### ADD
- 新增 **XHTTP obfs padding** 接收端支持:识别 `xPaddingObfsMode`(tokenish / queryInHeader)混淆头。
## [2.1.20260809231057] - 2026-08-09 23:10:57
### Debug
- 修复 **XHTTP链式代理** 参数解析:路径末尾多余的 `/` 会导致反代配置失效,现已兼容末尾斜杠。
## [2.1.20260809201158] - 2026-08-09 20:11:58
### Change
- 优化 **XHTTP** 传输链路:TCP 数据改由 `request.body.pipeTo(socket.writable)` 与 `socket.readable.pipeTo(IdentityTransformStream)` 双向直通,不再经过 ReadableStream + 上行写入队列 + BYOB/Grain 逐块搬运,显著降低 CPU 占用。
- 优化 **XHTTP** 连接管理:`forwardataTCP` 新增"仅建立连接"模式,建连并写入首包后直接返回 socket 交由 pipe 直通,同时保留直连失败后自动切换反代的兜底逻辑(gRPC/WS 调用方不受影响)。
- 优化 **XHTTP UDP** 处理:UDP 分支独立拆出为专用处理函数,保留 Trojan UDP 反代与 DNS 转发逻辑。
## [2.1.20260729235734] - 2026-07-29 23:57:34
### Change
- 修正 **PRELOAD_RACE_DIAL** 环境变量逻辑:默认值由 `true` 改为 `false`(默认**关闭**预加载竞速拨号),设置 `1` 或 `true` 则**开启**;同步修正 README 中该变量的说明。[提交](https://github.com/cmliu/edgetunnel/commit/aea8b85688ef6066116af551cfd5e6fd2ce77567)
## [2.1.20260724150359] - 2026-07-24 15:03:59
### Change
- 同步 **GrainTCP** 最新传输优化:上行 Grain 合包目标由 `16KB` 调整为 `20KB`,并复用统一的收纳/合包核心;连续小块会在 drain 阶段机会性合并,减少高频 `writer.write()` 调用。[上游提交](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
- 优化下行 **GrainTCP** 聚合:保留 `32KB` 聚合上限,使用 `tail × 12` 低水位和最多 `4` 轮、每轮 `1ms` 的增长观察;flush 可连续发送多个聚合包,接近上限时及时发送,降低小包 WebSocket frame 数量。[上游提交](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
- 优化下行数据包处理:大块数据在 Grain 为空时直接发送,小块数据在 BYOB/default reader 路径中先脱离可复用读取缓冲;聚合结果复制后再发送,避免 scratch buffer 复用造成数据覆盖。[上游提交](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
- 基于上游传输模型增强 TCP 连接管理:加入 connection generation、socket identity 和旧下行 drain 屏障;重拨期间上行数据继续收纳并等待新 writer,旧 reader、定时器或连接的异步收尾不会污染新连接。[上游思路](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
- 基于上游 Grain 发送模型统一直发、分段发送、定时 flush 的串行发送链,并持久化异步发送错误;响应头仅在首次真实发送时消费,避免重拨或失效连接提前消耗协议响应头。[上游思路](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
- 保持现有多协议兼容性:WS 上行采用非等待入队以降低消息处理阻塞,XHTTP/gRPC 继续等待远端写入完成;本地保留 `16MiB / 4096` 条目的上传高水位保护,避免 Worker 队列无界增长。[上游变更](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
- 优化 仅在 **反代模式** 下启用本地测速响应,使用 **SOCKS5/HTTP/HTTPS/TURN/SSTP** 代理时改为正常转发测速请求。
## [2.1.20260722191426] - 2026-07-22 19:14:26
### Change
- 适配 `http://cp.cloudflare.com/generate_204` 真连接测试地址。
## [2.1.20260711190235] - 2026-07-11 19:02:35
### ADD
- 新增 **TCP_CONCURRENT_DIAL** 环境变量,可自定义 **TCP 并发拨号数**;设置后不再根据中国移动网络自动降为单路。
- 新增 **PROXY_CONCURRENT_DIAL** 环境变量,可自定义 **反代并发拨号数**。
## [2.1.20260711022318] - 2026-07-11 02:23:18
### Change
- 优化 **反代相关逻辑**:解决多反代节点参数因全局变量被意外覆盖导致不生效的问题。
- 优化 **DoH 缓存**:缓存近期的域名解析结果,减少重复请求,提升解析速度并降低资源占用;对于没有解析结果的域名也会暂时缓存,避免反复查询。
### ADD
- 新增 **反代并发拨号数**:可自行调整反代连接的并发数量。并发数越高,连接速度越快,但 IP 切换也越频繁;并发数越低,连接过程则更加稳定。
- 新增 **订阅转换配置**:更多功能选项,包括 **UDP**、**XUDP**、**TLS 1.3**、**插入节点类型** 和 **基础节点排序**,并同步透传到订阅转换后端。
- 新增 **Trojan 回退代理(Fallback)**:Trojan 协议现在支持设置备用代理地址。当主连接不通时,可以自动切换到备用代理继续工作,让连接更稳定可靠。[PR #1359](https://github.com/cmliu/edgetunnel/pull/1359)
## [2.1.20260617014121] - 2026-06-17 01:41:21
### ADD
- 订阅转换配置 增加 **仅输出节点信息** 的选项。
## [2.1.20260611041617] - 2026-06-11 04:16:17
### Change
- 优化 **版本信息接口** 的 UUID 校验逻辑,提高校验安全性。
## [2.1.20260609132903] - 2026-06-09 13:29:03
### Debug
- 修复 **报错1101** 特征码。
### Change
- 优化 **PROXYIP 解析缓存**:在缓存比较前统一将反代地址转为小写,避免同一反代地址因大小写不同重复解析。
## [2.1.20260601154939] - 2026-06-01 15:49:39
### Change
- 适配 **Xray-core v26.2.6**:TLS 已移除 `allowInsecure` 配置项,Base64 订阅不再输出 **跳过证书验证** 功能;Clash 与 Sing-box 订阅不受影响。[Release](https://github.com/XTLS/Xray-core/releases/tag/v26.2.6)
## [2.1.20260529014818] - 2026-05-29 01:48:18
### Change
- 优化 **中国移动** 直连访问时 TCP 并发拨号降级为单路,缓解CPU超时情况。
## [2.1.20260526210857] - 2026-05-26 21:08:57
### Debug
- 修复 **TURN 认证**:允许 STUN 鉴权 challenge 中存在空 `REALM`,避免空 realm 被误判为缺失导致连接失败。
## [2.1.20260518183745] - 2026-05-18 18:37:45
### ADD
- 新增 **PRELOAD_RACE_DIAL** 环境变量,可自定义 **TCP 预加载竞速拨号**:首次直连域名时可先通过 DoH 并发查询 A/AAAA 记录,优先使用 IPv4,数量不足时用 IPv6 补齐到 `TCP并发拨号数` 上限;反代失败兜底逻辑与普通首次直连拆分,避免误触发预加载。
## [2.1.20260517185203] - 2026-05-17 18:52:03
### Debug
- 修复 **WS/XHTTP/gRPC 上传**:上行写入改为等待远端写入完成后再继续处理下一块,避免上传突发时在 Worker 内部快速堆积并触发 `upload queue overflow`。
- 优化 **WS 显式传输队列**:上行队列保护从 256KB 调整为 16MB / 4096 条,并在队列清理时正确释放等待中的写入任务,减少大文件上传时的偶发溢出。
## [2.1.20260515185129] - 2026-05-15 18:51:29
### Change
- 优化 **Shadowsocks 订阅**:关闭 TLS 时会自动将优选端口重写为 noTLS 端口。(但是该功能不适用于反代IP)
- 优化 **GO2SOCKS5** 变量:从覆盖模式改为追加模式。[PR #1202](https://github.com/cmliu/edgetunnel/pull/1202)
## [2.1.20260513042803] - 2026-05-13 04:28:03
### Change
- 优化 **VLESS** 热路径:UUID 预解码为 16 字节直接比较,首包解析改为偏移和 `subarray()` 少拷贝处理。[开源引用](https://github.com/ToiCF/GrainTCP)
- 优化 **WS Early Data**:增加 8KB 上限保护,并避免普通 WebSocket 子协议被误当作 early data 注入首包。[开源引用](https://github.com/ToiCF/GrainTCP)
- 优化 **WS/XHTTP/gRPC** 上行链路:新增有界队列、小包合并和 256KB 背压保护,减少高频小包写入次数并防止队列无限增长。[开源引用](https://github.com/ToiCF/GrainTCP)
- 优化 下行 **GrainTCP** 发送流程:小包使用 microtask 和短静默窗口聚合,大包在 BYOB 路径中先刷新聚合器后直接发送,减少复制和 WebSocket frame 数量。[开源引用](https://github.com/ToiCF/GrainTCP)
- 优化 TCP 建连流程:直连和 proxyip 反代候选启用 4 路并发拨号抢首个成功连接,SOCKS/HTTP/HTTPS/TURN/SSTP 代理链路保持原握手逻辑。[开源引用](https://github.com/ToiCF/GrainTCP)
- 优化 WebSocket 握手和 WS 主链路传输:`allowHalfOpen` 增加异常回退,101 响应清空 `Sec-WebSocket-Extensions`,WS 主链路改用显式顺序队列处理。[开源引用](https://github.com/ToiCF/GrainTCP)
## [2.1.20260511041705] - 2026-05-11 04:17:05
### Change
- 优化 **登录设置页面** 密码验证逻辑,避免小白设置 `ADMIN` 密码的时候存在换行符,导致密码怎么都输不对然后心态爆炸!
### Delete
- 移除 订阅响应头中的请求数刷新倒计时,避免小白看到后心态爆炸!
## [2.1.20260508190728] - 2026-05-08 19:07:28
### Debug
- 修复 **随机优选** 时,订阅转换后遗漏运营商信息,导致无法生成对应运营商优选IP的问题。
### Change
- 优化 订阅转换时将提交临时 `TOKEN` 用于转换,避免真实订阅地址泄露。
## [2.1.20260508041513] - 2026-05-08 04:15:13
### Change
- 优化 **PROXYIP** 域名解析流程:域名会优先读取 **TXT** 记录中的反代地址,未获取到 TXT 结果时再使用 **A** 记录解析结果。
- 当 TXT 和 A 记录均无结果时,再请求 **AAAA** 记录,减少不必要的 IPv6 查询。
### Delete
- 移除 `.william` 域名特判和 Google DoH 备用重试逻辑,普通域名也可通过 TXT 记录配置反代地址。
## [2.1.20260506175102] - 2026-05-06 17:51:02
### New
- 反代模式 中新增 **TURN 协议** 代理的功能。[开源引用](https://github.com/ToiCF/CF-Workers-TURN)
- 反代模式 中新增 **SSTP(SoftEther) 协议** 代理的功能。[开源引用](https://github.com/ToiCF/CF-Workers-SoftEther)
- 自定义订阅 中新增添加 **链式代理** 节点的功能。
## [2.1.20260503011925] - 2026-05-03 01:19:25
### Change
- 适配 **Sing-box** 关于 ECH 自定义 **EchConfig 解析域名** 功能。
- **自定义订阅** 适配 通配符优选域名。
### Delete
- 删除 **Clash** 关于 ECH 的 **EchConfig DNS服务** 备用DoH。
## [2.1.20260417015756] - 2026-04-17 01:57:56
### Debug
- 同步上游项目更新,修复 **HTTPS 代理** 已知问题。[参考链接](https://t.me/Enkelte_notif/824)
- 修复已知问题 [#1117](https://github.com/cmliu/edgetunnel/issues/1117) [#1119](https://github.com/cmliu/edgetunnel/issues/1119) [#1120](https://github.com/cmliu/edgetunnel/issues/1120)
## [2.1.20260416044724] - 2026-04-16 04:47:24
### New
- Trojan 协议现已支持通过 UDP Over TCP 方式进行 DNS 查询。
- 反向代理模式中新增 **HTTPS 代理** 功能。[开源引用](https://github.com/ToiCF/CF-Workers-HTTPS)
## [2.1.20260413174651] - 2026-04-13 17:46:51
### Change
- 优化WebSocket数据传输逻辑,支持BYOB模式以提高性能和灵活性。
## [2.1.20260410060317] - 2026-04-10 06:03:17
### New
- 新增 Shadowsocks 协议 **AEAD 加密传输**,为非 TLS 传输模式提供内容加密。
## [2.1.0]
### New
- VLESS/Trojan 协议现已支持 XHTTP 和 gRPC 传输方式。
## [2.0.0]
### New
- 项目架构已完全重写,新增前端 Web 页面。[前端源码](https://github.com/EDT-Pages/EDT-Pages.github.io)
+17 -29
View File
@@ -6,9 +6,7 @@
[![License](https://img.shields.io/github/license/cmliu/edgetunnel?style=flat-square)](https://github.com/cmliu/edgetunnel/blob/main/LICENSE)
[![Telegram](https://img.shields.io/badge/Telegram-Group-blue?style=flat-square&logo=telegram)](https://t.me/CMLiussss)
[![YouTube](https://img.shields.io/badge/YouTube-Channel-red?style=flat-square&logo=youtube)](https://www.youtube.com/watch?v=LeT4jQUh8ok)
[![zread](https://img.shields.io/badge/Ask_Zread-_.svg?style=flat-square&color=00b0aa&labelColor=000000&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuOTYxNTYgMS42MDAxSDIuMjQxNTZDMS44ODgxIDEuNjAwMSAxLjYwMTU2IDEuODg2NjQgMS42MDE1NiAyLjI0MDFWNC45NjAxQzEuNjAxNTYgNS4zMTM1NiAxLjg4ODEgNS42MDAxIDIuMjQxNTYgNS42MDAxSDQuOTYxNTZDNS4zMTUwMiA1LjYwMDEgNS42MDE1NiA1LjMxMzU2IDUuNjAxNTYgNC45NjAxVjIuMjQwMUM1LjYwMTU2IDEuODg2NjQgNS4zMTUwMiAxLjYwMDEgNC45NjE1NiAxLjYwMDFaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00Ljk2MTU2IDEwLjM5OTlIMi4yNDE1NkMxLjg4ODEgMTAuMzk5OSAxLjYwMTU2IDEwLjY4NjQgMS42MDE1NiAxMS4wMzk5VjEzLjc1OTlDMS42MDE1NiAxNC4xMTM0IDEuODg4MSAxNC4zOTk5IDIuMjQxNTYgMTQuMzk5OUg0Ljk2MTU2QzUuMzE1MDIgMTQuMzk5OSA1LjYwMTU2IDE0LjExMzQgNS42MDE1NiAxMy43NTk5VjExLjAzOTlDNS42MDE1NiAxMC42ODY0IDUuMzE1MDIgMTAuMzk5OSA0Ljk2MTU2IDEwLjM5OTlaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik0xMy43NTg0IDEuNjAwMUgxMS4wMzg0QzEwLjY4NSAxLjYwMDEgMTAuMzk4NCAxLjg4NjY0IDEwLjM5ODQgMi4yNDAxVjQuOTYwMUMxMC4zOTg0IDUuMzEzNTYgMTAuNjg1IDUuNjAwMSAxMS4wMzg0IDUuNjAwMUgxMy43NTg0QzE0LjExMTkgNS42MDAxIDE0LjM5ODQgNS4zMTM1NiAxNC4zOTg0IDQuOTYwMVYyLjI0MDFDMTQuMzk4NCAxLjg4NjY0IDE0LjExMTkgMS42MDAxIDEzLjc1ODQgMS42MDAxWiIgZmlsbD0iI2ZmZiIvPgo8cGF0aCBkPSJNNCAxMkwxMiA0TDQgMTJaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00IDEyTDEyIDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K&logoColor=ffffff)](https://zread.ai/cmliu/edgetunnel)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/cmliu/edgetunnel)
---
## 📖 项目简介
@@ -124,12 +122,9 @@
| **PROXYIP** | ❌ | `proxyip.cmliussss.net:443` | 全局自定义反代 IP |
| **URL** | ❌ | `https://cloudflare-error-page-3th.pages.dev` | 默认主页伪装地址(可填写网页 URL 或 `1101`) |
| **GO2SOCKS5** | ❌ | `blog.cmliussss.com`,`*.ip111.cn`,`*google.com` | 强制走 SOCKS5 的名单 (`*` 为全局,域名用逗号分隔) |
| **DEBUG** | ❌ | `1`或`true` | **开发者模式**,默认**关闭**调试日志功能(console.log),设置`1`或`true`则**开启**调试日志功能 |
| **OFF_LOG** | ❌ | `1`或`true` | 默认**开启**KV日志记录功能,设置`1`或`true`则**关闭**日志记录功能 |
| **BEST_SUB** | ❌ | `1`或`true` | 默认**关闭**作为**优选订阅生成器**的功能,设置`1`或`true`则**开启**该功能 |
| **PRELOAD_RACE_DIAL** | ❌ | `1`或`true` | 默认**关闭**作为**预加载竞速拨号**的功能,设置`1`或`true`则**开启**该功能 |
| **TCP_CONCURRENT_DIAL** | ❌ | `2` | **TCP 并发拨号数**,默认值为`2`;设置后不再根据中国移动网络自动降为单路 |
| **PROXY_CONCURRENT_DIAL** | ❌ | `1` | **反代并发拨号数**,默认值为`1`;数值越高连接速度越快,但 IP 切换也越频繁 |
| **DEBUG** | ❌ | `1`或`true` | **开发者模式**,默认关闭调试日志功能(console.log),设置`1`或`true`则开启调试日志功能 |
| **OFF_LOG** | ❌ | `1`或`true` | 默认开启日志记录功能,设置`1`或`true`则关闭日志记录功能 |
| **BEST_SUB** | ❌ | `1`或`true` | 默认关闭作为**优选订阅生成器**的功能,设置`1`或`true`则开启该功能 |
---
@@ -160,34 +155,31 @@
/http://user:password@127.0.0.1:8080 (默认激活全局SOCKS5)
```
- 指定 `Trojan fallback` 案例(由于使用场景为自建对接, 仅 Trojan 入站,fallback 服务需为同密码、非 WebSocket、非 TLS. 此时 UDP 透传给 fallback, 性能优秀, 功能完整)
```url
/trojan=1.1.1.1:1234
```
---
## 💻 客户端适配情况
| 平台 | 推荐客户端 |
| :--- | :--- |
| **Windows** | [v2rayN](https://github.com/2dust/v2rayN/releases)、[Hiddify](https://github.com/hiddify/hiddify-app/releases)、[FlClash](https://github.com/chen08209/FlClash/releases)、[mihomo-party](https://github.com/mihomo-party-org/clash-party/releases)、[Clash Verge Rev](https://github.com/clash-verge-rev/clash-verge-rev/releases)、[Clashmi](https://github.com/KaringX/clashmi/releases)、[FlyClash](https://github.com/GtxFury/FlyClash/releases)、[Karing](https://github.com/KaringX/karing/releases)、[Bettbox](https://github.com/appshubcc/Bettbox/releases) |
| **Android** | [v2rayNG](https://github.com/2dust/v2rayNG/releases)、[ClashMetaForAndroid](https://github.com/MetaCubeX/ClashMetaForAndroid/releases/)、[FlClash](https://github.com/chen08209/FlClash/releases)、[Clashmi](https://github.com/KaringX/clashmi/releases)、[Hiddify](https://github.com/hiddify/hiddify-app/releases)、[NekoBox](https://github.com/MatsuriDayo/NekoBoxForAndroid/releases)、[FlyClash](https://github.com/GtxFury/FlyClash/releases)、[Karing](https://github.com/KaringX/karing/releases)、[Bettbox](https://github.com/appshubcc/Bettbox/releases) |
| **iOS** | Surge、Shadowrocket、Stash、[Hiddify](https://github.com/hiddify/hiddify-app/releases)、Loon、Egern、[Clashmi](https://clashmi.app/download)、[Karing](https://karing.app/)、Quantumult X |
| **macOS** | [FlClash](https://github.com/chen08209/FlClash/releases)、[mihomo-party](https://github.com/mihomo-party-org/clash-party/releases)、[Clash Verge Rev](https://github.com/clash-verge-rev/clash-verge-rev/releases)、Surge、[Clashmi](https://clashmi.app/download)、[Karing](https://karing.app/)、[FlyClash](https://github.com/GtxFury/FlyClash/releases) |
| **鸿蒙** | [ClashBox](https://github.com/xiaobaigroup/ClashBox/releases) |
| 平台 | 推荐客户端 | 备注 |
| :--- | :--- | :--- |
| **Windows** | [v2rayN](https://github.com/2dust/v2rayN), [FlClash](https://github.com/chen08209/FlClash), [mihomo-party](https://github.com/mihomo-party-org/mihomo-party), [Clash Verge Rev](https://github.com/ClashVerge/ClashVerge-Rev) | 全面支持 |
| **Android** | [ClashMetaForAndroid](https://github.com/chen08209/ClashMetaForAndroid), [FlClash](https://github.com/chen08209/FlClash), [v2rayNG](https://github.com/2dust/v2rayNG) | 建议使用 Meta 核心 |
| **iOS** | [Surge](https://surgeapp.com/), [Shadowrocket](https://shadowrocket.com/), [Stash](https://stashapp.com/) | 完美适配 |
| **MacOS** | [FlClash](https://github.com/chen08209/FlClash), [mihomo-party](https://github.com/mihomo-party-org/mihomo-party), [Clash Verge Rev](https://github.com/ClashVerge/ClashVerge-Rev), [Surge](https://surgeapp.com/) | M1/M2 完美兼容 |
---
## ⭐ 项目热度
![Stargazers over time](https://github.com/cmliu/cmliu/blob/main/star/edgetunnel.svg)
[![Stargazers over time](https://starchart.cc/cmliu/edgetunnel.svg?variant=adaptive)](https://starchart.cc/cmliu/edgetunnel)
---
## 🙏 特别鸣谢
### 💖 赞助支持 - 提供云服务器维持[订阅转换服务](https://sub.cmliussss.net/)
- [Yuusei Network](https://yuusei.io/)
- [VMRack](https://www.vmrack.net?ref_code=5Zk7eNhbgL7)
- [NodeLoc](https://www.nodeloc.com/)
- [Alice](https://url.cmliussss.com/alice)
- [EasyLinks](https://www.vmrack.net?ref_code=5Zk7eNhbgL7)
- [ZMTO(VTEXS)](https://zmto.com/?affid=1532)
### 🛠 开源代码引用
- [zizifn/edgetunnel](https://github.com/zizifn/edgetunnel)
@@ -199,15 +191,11 @@
- [Workers/Pages Metrics](https://t.me/zhetengsha/3382)
- [白嫖哥](https://t.me/bestcfipas)
- [Mingyu](https://github.com/ymyuuu/workers-vless)
- [ToiCF/CF-Workers-HTTPS](https://github.com/ToiCF/CF-Workers-HTTPS)
- [ToiCF/CF-Workers-TURN](https://github.com/ToiCF/CF-Workers-TURN)
- [ToiCF/CF-Workers-SoftEther](https://github.com/ToiCF/CF-Workers-SoftEther)
- [Alexandre Kojève](https://t.me/Enkelte_notif/784)
- [eooce](https://github.com/eooce/Cloudflare-proxy)
- [Sukka](https://ip.skk.moe/)
- [zhangtaile](https://github.com/cmliu/edgetunnel/pull/999)
- [1345695](https://github.com/1345695/edcloudwasm)
- [ToiCF/GrainTCP](https://github.com/ToiCF/GrainTCP)
- [xream](https://github.com/cmliu/edgetunnel/pull/1359)
---
@@ -221,4 +209,4 @@
---
**如果您觉得项目对您有帮助,请给一个 Star 🌟,这是对我最大的鼓励!**
**如果您觉得项目对您有帮助,请给一个 Star 🌟,这是对我最大的鼓励!**
+3478 -33144
View File
File diff suppressed because it is too large. Load diff