xfuture 1.1.9 → 1.2.1
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 +10 -1
- package/package/windows/xFuture.node +0 -0
- package/package/windows/xray.dll +0 -0
- package/package.json +1 -1
- package/parser.js +3 -3
package/index.js
CHANGED
@@ -74,12 +74,21 @@ class xFuture {
|
|
74
74
|
|
75
75
|
ChangeURL(url){
|
76
76
|
var json = JSON.stringify(parser.parse(url));
|
77
|
-
return ff.ChangeURL(json, url);
|
77
|
+
return ff.ChangeURL(json, url, false);
|
78
78
|
}
|
79
79
|
|
80
80
|
SetGlobalMode(isGlobalMode, ipdir){
|
81
|
+
if (isGlobalMode == parser.isGlobalMode) {
|
82
|
+
return;
|
83
|
+
}
|
81
84
|
parser.isGlobalMode = isGlobalMode;
|
82
85
|
ff.SetGlobalMode(isGlobalMode, ipdir);
|
86
|
+
let K_Connected = 2;
|
87
|
+
if (this.GetCurrentStatus() == K_Connected) {
|
88
|
+
var url = this.GetCurrentURI();
|
89
|
+
var json = JSON.stringify(parser.parse(url));
|
90
|
+
this.ChangeURL(json, url, true);
|
91
|
+
}
|
83
92
|
}
|
84
93
|
|
85
94
|
// 1. Mac 请传 install_helper.sh 和 xfuture_helper 的绝对路径
|
Binary file
|
package/package/windows/xray.dll
CHANGED
Binary file
|
package/package.json
CHANGED
package/parser.js
CHANGED
@@ -203,19 +203,19 @@ class xParser {
|
|
203
203
|
getRules() {
|
204
204
|
var rules = [];
|
205
205
|
if (this.isGlobalMode) {
|
206
|
-
A = {};
|
206
|
+
var A = {};
|
207
207
|
A.type = "field";
|
208
208
|
A.domain = ["geosite:cn"];
|
209
209
|
A.outboundTag = "direct";
|
210
210
|
rules.push(A);
|
211
211
|
|
212
|
-
B = {};
|
212
|
+
var B = {};
|
213
213
|
B.type = "field";
|
214
214
|
B.domain = ["geosite:cn"];
|
215
215
|
B.outboundTag = "direct";
|
216
216
|
rules.push(B);
|
217
217
|
|
218
|
-
C = {};
|
218
|
+
var C = {};
|
219
219
|
C.type = "field";
|
220
220
|
C.domain = ["geosite:cn"];
|
221
221
|
C.outboundTag = "direct";
|