xfuture 1.9.4 → 1.9.5
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-for-win32-ia32.js +6 -10
- package/index.js +7 -10
- package/package.json +1 -1
package/index-for-win32-ia32.js
CHANGED
|
@@ -28,13 +28,8 @@ class xFuture {
|
|
|
28
28
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
SetTunModeEnable(enable
|
|
31
|
+
SetTunModeEnable(enable){
|
|
32
32
|
this.isTunMode = enable;
|
|
33
|
-
this.workingDir = workingDir;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
SetWorkingDir(workingDir){
|
|
37
|
-
this.workingDir = workingDir
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
StartTunnel(url){
|
|
@@ -109,16 +104,17 @@ class xFuture {
|
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
106
|
|
|
112
|
-
SetGlobalMode(isGlobalMode
|
|
113
|
-
console.log("isGlobalMode:", isGlobalMode
|
|
114
|
-
parser.workingDir = ipdir;
|
|
107
|
+
SetGlobalMode(isGlobalMode){
|
|
108
|
+
console.log("isGlobalMode:", isGlobalMode);
|
|
115
109
|
parser.isGlobalMode = isGlobalMode;
|
|
116
110
|
}
|
|
117
111
|
|
|
118
112
|
// 1. Mac 请传 install_helper.sh 和 xfuture_helper 的绝对路径
|
|
119
113
|
// 2. Windows 请传 "maodou" 固定字符串 和 sysproxy.exe 的绝对路径
|
|
120
|
-
InstallDriver(shell_path, helper_path){
|
|
114
|
+
InstallDriver(shell_path, helper_path, workingDir){
|
|
121
115
|
this.driver = helper_path;
|
|
116
|
+
this.workingDir = workingDir;
|
|
117
|
+
parser.workingDir = workingDir;
|
|
122
118
|
}
|
|
123
119
|
|
|
124
120
|
GetCurrentStatus(){
|
package/index.js
CHANGED
|
@@ -26,14 +26,10 @@ class xFuture {
|
|
|
26
26
|
ff.SetPassword(password);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
SetTunModeEnable(enable
|
|
29
|
+
SetTunModeEnable(enable){
|
|
30
30
|
this.isTunMode = enable;
|
|
31
31
|
parser.isTunMode = enable;
|
|
32
|
-
ff.SetTunModeEnable(enable, workingDir);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
SetWorkingDir(workingDir){
|
|
36
|
-
this.workingDir = workingDir
|
|
32
|
+
ff.SetTunModeEnable(enable, this.workingDir);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
StartTunnel(url){
|
|
@@ -90,17 +86,18 @@ class xFuture {
|
|
|
90
86
|
ff.StopProxy();
|
|
91
87
|
}
|
|
92
88
|
|
|
93
|
-
SetGlobalMode(isGlobalMode
|
|
89
|
+
SetGlobalMode(isGlobalMode){
|
|
94
90
|
console.log("isGlobalMode:", isGlobalMode, " dir:", ipdir);
|
|
95
|
-
parser.workingDir = ipdir;
|
|
96
91
|
parser.isGlobalMode = isGlobalMode;
|
|
97
|
-
ff.SetGlobalMode(isGlobalMode,
|
|
92
|
+
ff.SetGlobalMode(isGlobalMode, this.workingDir);
|
|
98
93
|
}
|
|
99
94
|
|
|
100
95
|
// 1. Mac 请传 install_helper.sh 和 xfuture_helper 的绝对路径
|
|
101
96
|
// 2. Windows 请传 "maodou" 固定字符串 和 sysproxy.exe 的绝对路径
|
|
102
|
-
InstallDriver(shell_path, helper_path){
|
|
97
|
+
InstallDriver(shell_path, helper_path, workingDir){
|
|
103
98
|
this.driver = helper_path;
|
|
99
|
+
this.workingDir = workingDir;
|
|
100
|
+
parser.workingDir = ipdir;
|
|
104
101
|
return ff.InstallDriver(shell_path, helper_path);
|
|
105
102
|
}
|
|
106
103
|
|