Skip to content

Commit 12c214c

Browse files
committed
Added README
1 parent 1bddfc3 commit 12c214c

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bower_components
3535
.lock-wscript
3636

3737
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
38+
build/
3939

4040
# Dependency directories
4141
node_modules/

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# v2asub
2+
自动更新V2Ray的订阅,并更新config.json
3+
4+
不提供任何支持,有问题发Issue。
5+
6+
## 使用
7+
首先,需要用户参照`subs.example.json`的格式,填入你的订阅链接,创建文件`subs.json`
8+
v2asub会读取该文件中给出的订阅地址,ping所有的服务器,按照延迟排序,并选取`choice`个服务器进行负载均衡。
9+
- `preferredProto`: 仅会选取使用该协议的服务器。目前支持`tcp``ws`
10+
如果使用`ws`,但是WebSocket的路径(`streamSettings`中的`path`)不符合的话,仅会选取所有和第一项订阅中,延迟最低服务器的路径相同的服务器。
11+
- `subslist`:订阅服务器列表
12+
- `must-include`:服务器的名字**必须**包含该列表中的**所有**字符串。
13+
- `must-exclude`:服务器的名字**不可**包含该列表中的**任何**字符串。
14+
- `choice`:从该订阅中选取的服务器数量
15+
- `outboundtag`:目标代理规则的tag。该程序仅会修改这个Tag所对应的outbound对象,不会修改其他内容(排版可能会改变)。
16+
17+
## 运行
18+
clone之后执行`node install`,然后`node index.js` 或者 `npm start`
19+
20+
软件会基于`template.json`,创建`config.json`,可以直接给V2Ray使用。

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name": "v2upd",
2+
"name": "v2asub",
33
"version": "1.0.0",
44
"description": "v2 Configuration updater",
55
"main": "index.js",
6+
"bin": "index.js",
67
"scripts": {
78
"start": "node index.js",
89
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)