xfuture 1.2.8 → 1.2.9
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.
- package/index.js +1 -1
- package/package/windows/xFuture.node +0 -0
- package/package/windows/xray.dll +0 -0
- package/package.json +4 -1
- package/parser.js +34 -19
- package/package/windows/xray.exe +0 -0
package/index.js
CHANGED
@@ -95,10 +95,10 @@ class xFuture {
|
|
95
95
|
SetGlobalMode(isGlobalMode, ipdir){
|
96
96
|
console.log("isGlobalMode:", isGlobalMode, " dir:", ipdir);
|
97
97
|
ff.SetGlobalMode(isGlobalMode, ipdir);
|
98
|
+
parser.isGlobalMode = isGlobalMode;
|
98
99
|
if (isGlobalMode == parser.isGlobalMode) {
|
99
100
|
return;
|
100
101
|
}
|
101
|
-
parser.isGlobalMode = isGlobalMode;
|
102
102
|
let K_Connected = 2;
|
103
103
|
if (this.GetCurrentStatus() == K_Connected) {
|
104
104
|
var url = this.GetCurrentURI();
|
Binary file
|
package/package/windows/xray.dll
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "xfuture",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.9",
|
4
4
|
"description": "electron vpn sdk",
|
5
5
|
"main": "x.js",
|
6
6
|
"scripts": {
|
@@ -43,6 +43,9 @@
|
|
43
43
|
"NSMicrophoneUsageDescription": "I need access to your microphone to send your voice to others in the session room.",
|
44
44
|
"NSCameraUsageDescription": "I need access to your camera so that others can see you in the session room."
|
45
45
|
}
|
46
|
+
},
|
47
|
+
"win":{
|
48
|
+
"requestedExecutionLevel": "highestAvailable"
|
46
49
|
}
|
47
50
|
}
|
48
51
|
}
|
package/parser.js
CHANGED
@@ -203,33 +203,41 @@ class xParser {
|
|
203
203
|
getRules() {
|
204
204
|
var rules = [];
|
205
205
|
if (!this.isGlobalMode) {
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
206
|
+
rules = [
|
207
|
+
{
|
208
|
+
"type":"field",
|
209
|
+
"domain":["geosite:cn"],
|
210
|
+
"outboundTag":"direct"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"type":"field",
|
214
|
+
"ip":["geoip:private", "geoip:cn"],
|
215
|
+
"outboundTag":"direct"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"type":"field",
|
219
|
+
"domain":["geosite:geolocation-!cn"],
|
220
|
+
"outboundTag":"proxy"
|
221
|
+
}
|
222
|
+
]
|
223
223
|
}
|
224
224
|
return rules;
|
225
225
|
}
|
226
226
|
|
227
227
|
getBase(){
|
228
228
|
var base = {
|
229
|
-
"remark": "
|
229
|
+
"remark": "MaoDou",
|
230
230
|
"log": {
|
231
231
|
"loglevel": "info"
|
232
232
|
},
|
233
|
+
"tun": {
|
234
|
+
"inet4_address": "172.19.0.1/30",
|
235
|
+
"stack": "system",
|
236
|
+
"mtu": 9000,
|
237
|
+
"auto_route": true,
|
238
|
+
"auto_detect_interface": true,
|
239
|
+
"override_android_vpn": false
|
240
|
+
},
|
233
241
|
"inbounds": [
|
234
242
|
{
|
235
243
|
"settings": {
|
@@ -276,7 +284,14 @@ class xParser {
|
|
276
284
|
"protocol": "blackhole",
|
277
285
|
"tag": "block"
|
278
286
|
}
|
279
|
-
]
|
287
|
+
],
|
288
|
+
"dns": {
|
289
|
+
"hosts": {
|
290
|
+
"domain:googleapis.cn": "googleapis.com",
|
291
|
+
"dns.google": "8.8.8.8",
|
292
|
+
},
|
293
|
+
"servers":["8.8.8.8", "8.8.4.4", "1.1.1.1", "1.0.0.1"]
|
294
|
+
}
|
280
295
|
}
|
281
296
|
return base;
|
282
297
|
}
|
package/package/windows/xray.exe
DELETED
Binary file
|