xtunnel 1.5.3 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,89 @@
1
+ {
2
+ "log": {
3
+ "error": "",
4
+ "loglevel": "error",
5
+ "access": ""
6
+ },
7
+ "inbounds": [
8
+ {
9
+ "listen": "127.0.0.1",
10
+ "protocol": "socks",
11
+ "settings": {
12
+ "udp": false,
13
+ "auth": "noauth"
14
+ },
15
+ "port": "10800"
16
+ },
17
+ {
18
+ "listen": "127.0.0.1",
19
+ "protocol": "http",
20
+ "settings": {
21
+ "timeout": 360
22
+ },
23
+ "port": "10870"
24
+ }
25
+ ],
26
+ "outbounds": [
27
+ {
28
+ "tag": "proxy",
29
+ "protocol": "vmess",
30
+ "mux": {
31
+ "enabled": false,
32
+ "concurrency": 8
33
+ },
34
+ "streamSettings": {
35
+ "wsSettings": {
36
+ "path": "/v2ray",
37
+ "headers": {
38
+ "host": ""
39
+ }
40
+ },
41
+ "tlsSettings": {
42
+ "allowInsecure": true
43
+ },
44
+ "security": "none",
45
+ "network": "ws"
46
+ },
47
+ "settings": {
48
+ "vnext": [
49
+ {
50
+ "address": "a1.amazonfead.org",
51
+ "port": 11101,
52
+ "users": [
53
+ {
54
+ "id": "d289df49-72eb-3b11-b83f-928b0a0f0dfc",
55
+ "alterId": 0,
56
+ "level": 0,
57
+ "security": "auto"
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "tag": "direct",
66
+ "protocol": "freedom",
67
+ "settings": {
68
+ "domainStrategy": "UseIP",
69
+ "redirect": "",
70
+ "userLevel": 0
71
+ }
72
+ },
73
+ {
74
+ "tag": "block",
75
+ "protocol": "blackhole",
76
+ "settings": {
77
+ "response": {
78
+ "type": "none"
79
+ }
80
+ }
81
+ }
82
+ ],
83
+ "dns": {},
84
+ "routing": {
85
+ "domainStrategy": "AsIs",
86
+ "rules": []
87
+ },
88
+ "transport": {}
89
+ }
Binary file
package/index.js CHANGED
@@ -26,7 +26,7 @@ async function run(url) {
26
26
  let data = JSON.parse(res.data)
27
27
  let remoteConfig = data.config
28
28
  subItems = Buffer.from(data.sub, 'base64').toString().split("vmess://").map(o => Buffer.from(o, 'base64').toString()).filter(o => o)
29
- let server = subItems.map(o => JSON.parse(o)).filter(o => o.verify_cert)[0]
29
+ let server = subItems.map(o => JSON.parse(o)).filter(o => o.class)[0]
30
30
  remoteConfig.tpl.inbounds[1].port = config.setting.localHttpPort
31
31
  remoteConfig.tpl.outbounds[0].settings.vnext[0].address = server.add
32
32
  remoteConfig.tpl.outbounds[0].settings.vnext[0].port = server.port
@@ -37,6 +37,7 @@ async function run(url) {
37
37
  if (server.aid > 0) {
38
38
  delete remoteConfig.tpl.outbounds[0].settings.vnext[0].users[0].security
39
39
  }
40
+ remoteConfig.routing = { "domainStrategy": "AsIs", "rules": [] }
40
41
  fs.writeFile(path.join(__dirname, './core/config.json'), JSON.stringify(remoteConfig.tpl), err => !err && start())
41
42
  }
42
43
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtunnel",
3
- "version": "1.5.3",
3
+ "version": "1.5.6",
4
4
  "description": "xtunnel",
5
5
  "main": "index.js",
6
6
  "scripts": {},