diff --git a/.github/workflows/obfus.yml b/.github/workflows/obfus.yml index be7f69b..e6251f8 100644 --- a/.github/workflows/obfus.yml +++ b/.github/workflows/obfus.yml @@ -78,6 +78,8 @@ jobs: `${{ env.projName }}.zip` 是 `${{ env.TAG }}` 混淆后的代码 SHA256: ${{ env.CHECKSUM }} Action ID: [${{ github.run_id }}](${{ env.actionRunsUrl }}${{ github.run_id }}) + + `Source code (zip)` 里面有明文代码 更新日志:[update-log.md](https://github.com/vrnobody/cfxhttp/blob/main/docs/update-log.md) 这个发布使用 [attestations](https://docs.github.com/zh/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds) 来保证,混淆后的代码没有夹带私货。 diff --git a/README.md b/README.md index 0262a11..464d48a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ 1. 在 workers 的配置页面添加路由,指向上面新加的二级域名,例如: `sub-domain.your-website.com/*` 1. 在设置面板中添加环境变量: `UUID` 和 `XHTTP_PATH` -访问 `https://sub-domain.your-website.com/(XHTTP_PATH)/?fragment=true&uuid=(UUID)` 获取 xhttp 协议的客户端 `config.json` +访问 `https://sub-domain.your-website.com/(XHTTP_PATH)/?fragment=true&uuid=(UUID)` +获取 xhttp 协议的客户端 `config.json`。 *xhttp 协议只能部署到 workers,不能部署到 pages 详见 [issue #2](https://github.com/vrnobody/cfxhttp/issues/2)* #### 各设置项说明 @@ -42,7 +43,7 @@ * `TIME_ZONE` 日志时间戳的时区,中国填 `8` #### 注意事项 - * src/index.js 是开发中的代码会有 bug,请到 releases 里面下载 Source code (zip) + * src/index.js 是开发中的代码,会有 bug,请到 [releases](https://github.com/vrnobody/cfxhttp/releases) 里面下载 Source code (zip) * 网站测速结果是错的,这个脚本很慢,不要有太高的期望 * workers / pages 不支持 UDP,需要 UDP 功能的应用无法使用,例如:DNS * workers / pages 有 CPU 时间限制,需要长时间链接的应用会随机断线,例如:下载大文件 diff --git a/docs/en.md b/docs/en.md index 9d807e6..7b45b2c 100644 --- a/docs/en.md +++ b/docs/en.md @@ -44,7 +44,7 @@ Visit `https://sub-domain.your-website.com/(XHTTP_PATH)/?fragment=true&uuid=(UUI * `TIME_ZONE` Timestamp time zone of logs. e.g. Argentina is `-3` #### Notice - * `src/index.js` is under developing, could have bugs, please download `Source code (zip)` from releases. + * `src/index.js` is under developing, could have bugs, please download `Source code (zip)` from [releases](https://github.com/vrnobody/cfxhttp/releases). * This script is slow, do not expect too much. * Workers and pages do not support UDP. Applications require UDP feature will not work. Such as DNS. * Workers and pages have CPU executing-time limit. Applications require long-term connection would disconnect randomly. Such as downloading a big file. diff --git a/test/index.test.js b/test/index.test.js index d8e6b2f..73aedb4 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -6,7 +6,7 @@ test('pick_random_proxy', () => { expect(index.pick_random_proxy('')).toBe('') expect(index.pick_random_proxy('a.com')).toBe('a.com') - // one line test + // single line test let ps = ' , p.a.com p.b.com,p.c.com, , , , , p.d.com, ,,,, ' let r = [] for (let i = 0; i < 100; i++) {