We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9ce04 commit 2d681eaCopy full SHA for 2d681ea
17 files changed
cmd/Air-Universe/cfg.go
@@ -20,7 +20,7 @@ var (
20
},
21
Proxy: structures.Proxy{
22
Type: "xray",
23
- AlertID: 1,
+ AlterID: 1,
24
AutoGenerate: true,
25
InTags: []string{},
26
APIAddress: "127.0.0.1",
configs/Air-Universe_json/Air-Universe_full.json
@@ -12,7 +12,7 @@
12
13
"proxy": {
14
"type": "xray",
15
- "alert_id": 1,
+ "alter_id": 1,
16
"auto_generate": true,
17
"in_tags": [
18
"p0",
docs/Doc_cn.md
@@ -110,7 +110,7 @@ Proxy-core(V2Ray 或 Xray)的API通信配置等
110
```json
111
{
112
"type": "type of proxy",
113
114
115
116
@@ -134,9 +134,9 @@ Proxy-core(V2Ray 或 Xray)的API通信配置等
134
- `v2ray` - [V2Ray-core](https://github.com/v2fly/v2ray-core)
135
- `xray` - [Xray](https://github.com/XTLS/Xray-core)
136
137
-> `alert_id`: string
+> `alter_id`: string
138
139
-手动配置入站代理时分配给 VMess 用户的alert_id。
+手动配置入站代理时分配给 VMess 用户的alter_id。
140
141
> `auto_generate`: bool
142
@@ -212,7 +212,7 @@ HTTP(S) 请求超时时间(秒)
212
213
214
215
216
217
"force_close_tls": false,
218
docs/Doc_en.md
@@ -89,7 +89,7 @@ The first element of `proxy.in_tags` will get users from the first element of `p
89
90
91
92
93
94
95
@@ -110,9 +110,9 @@ The first element of `proxy.in_tags` will get users from the first element of `p
Which proxy you are using. Now it supports
-V2Ray AlertId you want to set for every user. Please make sure it is equal to your panel setting.
+V2Ray AlterId you want to set for every user. Please make sure it is equal to your panel setting.
117
118
pkg/IPControl/getAliveIP_test.go
@@ -15,7 +15,7 @@ var (
Type: "v2ray",
19
InTags: []string{"p0"},
APIPort: 10085,
pkg/SSPanelAPI/SSPanelAPI_test.go
@@ -17,7 +17,7 @@ var (
@@ -30,9 +30,6 @@ var (
30
Timeout: 5,
31
32
}
33
- nodeInfo = &structures.NodeInfo{
34
- Id: 44,
35
- }
36
)
37
38
func TestPostTraffic(t *testing.T) {
pkg/SSPanelAPI/init.go
@@ -14,8 +14,8 @@ func (sspCtl *SspController) Init(cfg *structures.BaseConfig, idIndex uint32) (e
sspCtl.Key = cfg.Panel.Key
sspCtl.NodeInfo.Id = cfg.Panel.NodeIDs[idIndex]
sspCtl.NodeInfo.IdIndex = idIndex
- // 预先写入,如果没有获取到节点配置则使用配置文件的alertID
- sspCtl.NodeInfo.AlertID = cfg.Proxy.AlertID
+ // 预先写入,如果没有获取到节点配置则使用配置文件的alterID
+ sspCtl.NodeInfo.AlterID = cfg.Proxy.AlterID
sspCtl.NodeInfo.Tag = cfg.Proxy.InTags[idIndex]
sspCtl.NodeInfo.Cert = cfg.Proxy.Cert
pkg/SSPanelAPI/node.go
@@ -13,7 +13,7 @@ import (
/*
-[url, port, alertId, isTLS, transportMode] (.*?)(?=;)
+[url, port, alterId, isTLS, transportMode] (.*?)(?=;)
path (?<=path=).*(?=\|)|(?<=path=).*
host (?<=host=).*(?=\|)|(?<=host=).*
*/
@@ -87,7 +87,7 @@ func getNodeInfo(node *SspController, closeTLS bool) (err error) {
87
88
-[url, port, alertId, isTLS, transportMode] (^|(?<=;))([^;]*)(?=;)
+[url, port, alterId, isTLS, transportMode] (^|(?<=;))([^;]*)(?=;)
path (?<=path=).*?(?=\|)|(?<=path=).*
host (?<=host=).*?(?=\|)|(?<=host=).*
@@ -119,7 +119,7 @@ func parseVmessRawInfo(node *structures.NodeInfo, closeTLS bool) (err error) {
119
} else {
120
node.ListenPort, _ = String2Uint32(mInsidePort.String())
121
122
- node.AlertID, _ = String2Uint32(basicInfoArray[2])
+ node.AlterID, _ = String2Uint32(basicInfoArray[2])
123
124
node.EnableTLS = false
125
for _, transM := range []int{3, 4} {
pkg/SSPanelAPI/user.go
@@ -48,7 +48,7 @@ func getUser(node *SspController) (userList *[]structures.UserInfo, err error) {
48
user.Id = uint32(rtn.Get("data").GetIndex(u).Get("id").MustInt())
49
user.Uuid = rtn.Get("data").GetIndex(u).Get("uuid").MustString()
50
user.Password = rtn.Get("data").GetIndex(u).Get("passwd").MustString()
51
- user.AlertId = node.NodeInfo.AlertID
+ user.AlterId = node.NodeInfo.AlterID
52
user.Level = 0
53
user.InTag = node.NodeInfo.Tag
54
user.Tag = fmt.Sprintf("%s-%s", strconv.FormatUint(uint64(user.Id), 10), user.InTag)
pkg/V2boardAPI/init.go
@@ -18,8 +18,8 @@ func (v2bCtl *V2bController) Init(cfg *structures.BaseConfig, idIndex uint32) (e
v2bCtl.Key = cfg.Panel.Key
v2bCtl.NodeInfo.Id = cfg.Panel.NodeIDs[idIndex]
v2bCtl.NodeInfo.IdIndex = idIndex
- v2bCtl.NodeInfo.AlertID = cfg.Proxy.AlertID
+ v2bCtl.NodeInfo.AlterID = cfg.Proxy.AlterID
v2bCtl.NodeInfo.Tag = cfg.Proxy.InTags[idIndex]
v2bCtl.NodeInfo.Cert = cfg.Proxy.Cert
// Not force
0 commit comments