xtunnel 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,24 +114,8 @@
114
114
  ],
115
115
  "dns": {},
116
116
  "routing": {
117
- "domainStrategy": "IPOnDemand",
118
- "rules": [
119
- {
120
- "type": "field",
121
- "outboundTag": "direct",
122
- "domain": [
123
- "geosite:cn"
124
- ]
125
- },
126
- {
127
- "type": "field",
128
- "outboundTag": "direct",
129
- "ip": [
130
- "geoip:cn",
131
- "geoip:private"
132
- ]
133
- }
134
- ]
117
+ "domainStrategy": "AsIs",
118
+ "rules": []
135
119
  },
136
120
  "transport": {}
137
121
  }
package/core/config.json CHANGED
@@ -1 +1,90 @@
1
- {"log":{"error":"","loglevel":"warning","access":""},"inbounds":[{"listen":"127.0.0.1","protocol":"socks","settings":{"udp":false,"auth":"noauth"},"port":"1080"},{"listen":"127.0.0.1","protocol":"http","settings":{"timeout":360,"port":"1087"},"port":"1087"}],"outbounds":[{"mux":{"enabled":false,"concurrency":8},"protocol":"vmess","streamSettings":{"wsSettings":{"path":"/v2ray","headers":{"host":""}},"tlsSettings":{"allowInsecure":true},"security":"none","network":"ws"},"tag":"proxy","settings":{"vnext":[{"address":"u3.amazonfeed.net","users":[{"id":"d289df49-72eb-3b11-b83f-928b0a0f0dfc","alterId":2,"level":0,"security":"aes-128-gcm"}],"port":11101}]}},{"tag":"direct","protocol":"freedom","settings":{"domainStrategy":"UseIP","redirect":"","userLevel":0}},{"tag":"block","protocol":"blackhole","settings":{"response":{"type":"none"}}}],"dns":{},"routing":{"domainStrategy":"AsIs","rules":[]},"transport":{}}
1
+ {
2
+ "log": {
3
+ "error": "",
4
+ "loglevel": "warning",
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": "1080"
16
+ },
17
+ {
18
+ "listen": "127.0.0.1",
19
+ "protocol": "http",
20
+ "settings": {
21
+ "timeout": 360,
22
+ "port": "1087"
23
+ },
24
+ "port": "1087"
25
+ }
26
+ ],
27
+ "outbounds": [
28
+ {
29
+ "mux": {
30
+ "enabled": false,
31
+ "concurrency": 8
32
+ },
33
+ "protocol": "vmess",
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
+ "tag": "proxy",
48
+ "settings": {
49
+ "vnext": [
50
+ {
51
+ "address": "u3.amazonfeed.net",
52
+ "users": [
53
+ {
54
+ "id": "d289df49-72eb-3b11-b83f-928b0a0f0dfc",
55
+ "alterId": 2,
56
+ "level": 0,
57
+ "security": "aes-128-gcm"
58
+ }
59
+ ],
60
+ "port": 11101
61
+ }
62
+ ]
63
+ }
64
+ },
65
+ {
66
+ "tag": "direct",
67
+ "protocol": "freedom",
68
+ "settings": {
69
+ "domainStrategy": "UseIP",
70
+ "redirect": "",
71
+ "userLevel": 0
72
+ }
73
+ },
74
+ {
75
+ "tag": "block",
76
+ "protocol": "blackhole",
77
+ "settings": {
78
+ "response": {
79
+ "type": "none"
80
+ }
81
+ }
82
+ }
83
+ ],
84
+ "dns": {},
85
+ "routing": {
86
+ "domainStrategy": "AsIs",
87
+ "rules": []
88
+ },
89
+ "transport": {}
90
+ }
package/index.js CHANGED
@@ -36,7 +36,6 @@ async function init(url) {
36
36
  function switchServer(server) {
37
37
  // 切换服务器
38
38
  config.tpl.inbounds[1].settings.port = config.setting.localHttpPort
39
- config.tpl.routing = config.routingGlobal
40
39
  config.tpl.outbounds[0].settings.vnext[0].address = server.add
41
40
  config.tpl.outbounds[0].settings.vnext[0].port = server.port
42
41
  config.tpl.outbounds[0].settings.vnext[0].users[0].id = server.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtunnel",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "xtunnel",
5
5
  "main": "index.js",
6
6
  "scripts": {},
package/core/geoip.dat DELETED
Binary file