Skip to content

Commit

Permalink
支持自定义订阅名称SUBNAME变量
Browse files Browse the repository at this point in the history
  • Loading branch information
cmliu committed Sep 2, 2024
1 parent 4c506ae commit 3b9de6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Telegram交流群:[@CMLiussss](https://t.me/CMLiussss),**感谢[Alice Networ
| SUB | `VLESS.fxxk.dedyn.io` || 内建域名、IP节点信息的订阅生成器地址 | [Video](https://www.youtube.com/watch?v=s91zjpw3-P8&t=1193s) |
| SUBAPI | `SUBAPI.fxxk.dedyn.io` || clash、singbox等 订阅转换后端 | [Video](https://www.youtube.com/watch?v=s91zjpw3-P8&t=1446s) |
| SUBCONFIG | [https://raw.github.../ACL4SSR_Online_Full_MultiMode.ini](https://raw.githubusercontent.com/cmliu/ACL4SSR/main/Clash/config/ACL4SSR_Online_Full_MultiMode.ini) || clash、singbox等 订阅转换配置文件 | [Video](https://www.youtube.com/watch?v=s91zjpw3-P8&t=1605s) |
| SUBNAME | `edgetunnel` || 订阅名称 | |
| RPROXYIP | `false` || 设为 true 即可强制获取订阅器分配的ProxyIP(需订阅器支持)| [Video](https://www.youtube.com/watch?v=s91zjpw3-P8&t=1816s) |
| URL302 | `https://t.me/CMLiussss` || 主页302跳转(支持多url, url之间使用`,`或 换行 作间隔, 小白别用) | |
| URL | `https://t.me/CMLiussss` || 主页伪装(支持多url, url之间使用`,`或 换行 作间隔, 乱设容易触发反诈) | |
Expand Down
1 change: 1 addition & 0 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export default {
const upgradeHeader = request.headers.get('Upgrade');
const url = new URL(request.url);
if (url.searchParams.has('sub') && url.searchParams.get('sub') !== '') sub = url.searchParams.get('sub');
FileName = env.SUBNAME || FileName;
if (url.searchParams.has('notls')) noTLS = 'true';
if (!upgradeHeader || upgradeHeader !== 'websocket') {
// const url = new URL(request.url);
Expand Down

0 comments on commit 3b9de6c

Please sign in to comment.