From b7d0b69217cb5a3e84f9a5d097a91a5828da32a9 Mon Sep 17 00:00:00 2001 From: 3Kmfi6HP <58669916+3Kmfi6HP@users.noreply.github.com> Date: Thu, 10 Aug 2023 08:35:28 +0700 Subject: [PATCH] updated --- README.md | 13 +++++++------ _worker.js | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fd6570a44..315f99142 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,11 @@ GitHub Repository for [https://github.com/zizifn/edgetunnel](https://github.com/ ## UUID Setting (Optional) -1. When deploy in cloudflare pages, you can set uuid in `wrangler.toml` file. variable name is `UUID`. +1. When deploy in cloudflare pages, you can set uuid in `wrangler.toml` file. variable name is `UUID`. `wrangler.toml` file is also supported. (recommended) in case deploy in webpages, you can not set uuid in `wrangler.toml` file. -2. When deploy in worker.dev, you can set uuid in `_worker.js` file. variable name is `userID`. +2. When deploy in worker.dev, you can set uuid in `_worker.js` file. variable name is `userID`. `wrangler.toml` file is also supported. (recommended) in case deploy in webpages, you can not set uuid in `wrangler.toml` file. in this case, you can also set uuid in `UUID` enviroment variable. + +note: `UUID` is the uuid you want to set. pages.dev and worker.dev all of them method supported, but depend on your deploy method. ### UUID Setting Example @@ -49,7 +51,7 @@ GitHub Repository for [https://github.com/zizifn/edgetunnel](https://github.com/ ``` note: uuid1, uuid2, uuid3 are separated by commas`,`. - when you set multiple uuid, you can wiill use `https://edtunnel.pages.dev/uuid1` to get the clash config and vless:// link. + when you set multiple uuid, you can will use `https://edtunnel.pages.dev/uuid1` to get the clash config and vless:// link. ## subscribe vless:// link (Optional) @@ -58,12 +60,12 @@ GitHub Repository for [https://github.com/zizifn/edgetunnel](https://github.com/ 2. visit `https://edtunnel.pages.dev/sub/uuid your set` to get the subscribe content with `uuid your set` path. note: `uuid your set` is the uuid you set in UUID enviroment or `wrangler.toml`, `_worker.js` file. - when you set multiple uuid, you can wiill use `https://edtunnel.pages.dev/sub/uuid1` to get the subscribe content with `uuid1` path.(only support first uuid in multiple uuid set) + when you set multiple uuid, you can will use `https://edtunnel.pages.dev/sub/uuid1` to get the subscribe content with `uuid1` path.(only support first uuid in multiple uuid set) 3. visit `https://edtunnel.pages.dev/sub/uuid your set/?format=clash` to get the subscribe content with `uuid your set` path and `clash` format. content will return with base64 encode. note: `uuid your set` is the uuid you set in UUID enviroment or `wrangler.toml`, `_worker.js` file. - when you set multiple uuid, you can wiill use `https://edtunnel.pages.dev/sub/uuid1/?format=clash` to get the subscribe content with `uuid1` path and `clash` format.(only support first uuid in multiple uuid set) + when you set multiple uuid, you can will use `https://edtunnel.pages.dev/sub/uuid1/?format=clash` to get the subscribe content with `uuid1` path and `clash` format.(only support first uuid in multiple uuid set) ## multiple port support (Optional) @@ -106,4 +108,3 @@ The path `/uuid your seetting` to get the clash config and vless:// link. Star History Chart - diff --git a/_worker.js b/_worker.js index 951a23858..d82aefd3b 100644 --- a/_worker.js +++ b/_worker.js @@ -835,7 +835,7 @@ function getVLESSConfig(userIDs, hostName) { 图片描述 `); header.push(`\nWelcome! This function generates configuration for VLESS protocol. If you found this useful, please check our GitHub project for more:\n`); - header.push(`欢迎!这是生成 VLESS 协议的配置。如果您发现这个项目很好用,请查看我们的 GitHub 项目给我一个start:\n`); + header.push(`欢迎!这是生成 VLESS 协议的配置。如果您发现这个项目很好用,请查看我们的 GitHub 项目给我一个star:\n`); header.push(`\nEDtunnel - https://github.com/3Kmfi6HP/EDtunnel\n`); header.push(`\n\n\n`.replace(/USERNAME/g, "3Kmfi6HP").replace(/REPOSITORY/g, "EDtunnel")); header.push(`VLESS 节点订阅连接\nClash 节点订阅连接

\n`);