xfuture 2.8.5 → 2.8.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 +7 -2
- package/package/darwin/xFuture.node +0 -0
- package/package/win32-arm64/xFuture.node +0 -0
- package/package/win32-arm64/xray.dll +0 -0
- package/package/win32-x64/sysproxy.exe +0 -0
- package/package/{win32 → win32-x64}/xray.dll +0 -0
- package/package.json +7 -4
- package/resources/ai.json +1 -1
- package/resources/global.json +2 -17
- /package/package/{win32 → win32-arm64}/sysproxy.exe +0 -0
- /package/package/{win32 → win32-x64}/xFuture.node +0 -0
package/index.js
CHANGED
@@ -3,7 +3,12 @@ let os = require("os");
|
|
3
3
|
const { spawn } = require('child_process')
|
4
4
|
var isMac = false;
|
5
5
|
if (os.platform() === "win32") {
|
6
|
-
|
6
|
+
if (os.arch() == "arm64") {
|
7
|
+
xFuturePath = "./package/win32-arm64/xFuture";
|
8
|
+
}
|
9
|
+
else {
|
10
|
+
xFuturePath = "./package/win32-x64/xFuture";
|
11
|
+
}
|
7
12
|
} else if (os.platform() === "darwin") {
|
8
13
|
xFuturePath = "./package/darwin/xFuture"
|
9
14
|
isMac = true;
|
@@ -39,7 +44,7 @@ class xFuture {
|
|
39
44
|
if(this.driver.length == 0) return false;
|
40
45
|
var json = parser.parse(url);
|
41
46
|
var xray_json = JSON.stringify(json);
|
42
|
-
console.log("
|
47
|
+
console.log("json:", json);
|
43
48
|
var ok = ff.StartTunnel(xray_json, url, json.address);
|
44
49
|
if (ok) {
|
45
50
|
ok = this.StartProxy();
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "xfuture",
|
3
|
-
"version": "2.8.
|
3
|
+
"version": "2.8.9",
|
4
4
|
"description": "electron vpn sdk",
|
5
5
|
"main": "x.js",
|
6
6
|
"scripts": {
|
@@ -28,9 +28,12 @@
|
|
28
28
|
"package/darwin/install_helper.sh",
|
29
29
|
"package/darwin/xAdapter.framework",
|
30
30
|
"package/darwin/xsing-box-exec",
|
31
|
-
"package/win32/sysproxy.exe",
|
32
|
-
"package/win32/xFuture.node",
|
33
|
-
"package/win32/xray.dll",
|
31
|
+
"package/win32-arm64/sysproxy.exe",
|
32
|
+
"package/win32-arm64/xFuture.node",
|
33
|
+
"package/win32-arm64/xray.dll",
|
34
|
+
"package/win32-x64/sysproxy.exe",
|
35
|
+
"package/win32-x64/xFuture.node",
|
36
|
+
"package/win32-x64/xray.dll",
|
34
37
|
"resources/ai.json",
|
35
38
|
"resources/global.json",
|
36
39
|
"resources/geoip.dat",
|
package/resources/ai.json
CHANGED
package/resources/global.json
CHANGED
@@ -12,14 +12,7 @@
|
|
12
12
|
"address": "8.8.8.8",
|
13
13
|
"address_strategy": "prefer_ipv4",
|
14
14
|
"strategy": "prefer_ipv4",
|
15
|
-
"detour": "
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"tag": "dns_local",
|
19
|
-
"address": "local",
|
20
|
-
"address_strategy": "prefer_ipv4",
|
21
|
-
"strategy": "prefer_ipv4",
|
22
|
-
"detour": "direct"
|
15
|
+
"detour": "proxy"
|
23
16
|
},
|
24
17
|
{
|
25
18
|
"tag": "dns_block",
|
@@ -29,7 +22,7 @@
|
|
29
22
|
"rules": [
|
30
23
|
{
|
31
24
|
"outbound": "any",
|
32
|
-
"server": "
|
25
|
+
"server": "dns_proxy"
|
33
26
|
}
|
34
27
|
],
|
35
28
|
"final": "dns_proxy",
|
@@ -80,10 +73,6 @@
|
|
80
73
|
"ip_cidr":["____ip____"],
|
81
74
|
"outbound":"direct"
|
82
75
|
},
|
83
|
-
{
|
84
|
-
"protocol": "dns",
|
85
|
-
"outbound": "dns_out"
|
86
|
-
},
|
87
76
|
{
|
88
77
|
"protocol": ["quic"],
|
89
78
|
"outbound": "block"
|
@@ -105,10 +94,6 @@
|
|
105
94
|
{
|
106
95
|
"rule_set": "geoip-cn",
|
107
96
|
"outbound": "proxy"
|
108
|
-
},
|
109
|
-
{
|
110
|
-
"ip_is_private": true,
|
111
|
-
"outbound": "direct"
|
112
97
|
}
|
113
98
|
],
|
114
99
|
"rule_set": [
|
File without changes
|
File without changes
|