xfuture 1.9.3 → 1.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,9 +28,8 @@ class xFuture {
28
28
 
29
29
  }
30
30
 
31
- SetTunModeEnable(enable, workingDir){
31
+ SetTunModeEnable(enable){
32
32
  this.isTunMode = enable;
33
- this.workingDir = workingDir;
34
33
  }
35
34
 
36
35
  StartTunnel(url){
@@ -105,16 +104,17 @@ class xFuture {
105
104
  }
106
105
  }
107
106
 
108
- SetGlobalMode(isGlobalMode, ipdir){
109
- console.log("isGlobalMode:", isGlobalMode, " dir:", ipdir);
110
- parser.workingDir = ipdir;
107
+ SetGlobalMode(isGlobalMode){
108
+ console.log("isGlobalMode:", isGlobalMode);
111
109
  parser.isGlobalMode = isGlobalMode;
112
110
  }
113
111
 
114
112
  // 1. Mac 请传 install_helper.sh 和 xfuture_helper 的绝对路径
115
113
  // 2. Windows 请传 "maodou" 固定字符串 和 sysproxy.exe 的绝对路径
116
- InstallDriver(shell_path, helper_path){
114
+ InstallDriver(shell_path, helper_path, workingDir){
117
115
  this.driver = helper_path;
116
+ this.workingDir = workingDir;
117
+ parser.workingDir = workingDir;
118
118
  }
119
119
 
120
120
  GetCurrentStatus(){
package/index.js CHANGED
@@ -26,10 +26,10 @@ class xFuture {
26
26
  ff.SetPassword(password);
27
27
  }
28
28
 
29
- SetTunModeEnable(enable, workingDir){
29
+ SetTunModeEnable(enable){
30
30
  this.isTunMode = enable;
31
31
  parser.isTunMode = enable;
32
- ff.SetTunModeEnable(enable, workingDir);
32
+ ff.SetTunModeEnable(enable, this.workingDir);
33
33
  }
34
34
 
35
35
  StartTunnel(url){
@@ -86,17 +86,18 @@ class xFuture {
86
86
  ff.StopProxy();
87
87
  }
88
88
 
89
- SetGlobalMode(isGlobalMode, ipdir){
89
+ SetGlobalMode(isGlobalMode){
90
90
  console.log("isGlobalMode:", isGlobalMode, " dir:", ipdir);
91
- parser.workingDir = ipdir;
92
91
  parser.isGlobalMode = isGlobalMode;
93
- ff.SetGlobalMode(isGlobalMode, ipdir);
92
+ ff.SetGlobalMode(isGlobalMode, this.workingDir);
94
93
  }
95
94
 
96
95
  // 1. Mac 请传 install_helper.sh 和 xfuture_helper 的绝对路径
97
96
  // 2. Windows 请传 "maodou" 固定字符串 和 sysproxy.exe 的绝对路径
98
- InstallDriver(shell_path, helper_path){
97
+ InstallDriver(shell_path, helper_path, workingDir){
99
98
  this.driver = helper_path;
99
+ this.workingDir = workingDir;
100
+ parser.workingDir = ipdir;
100
101
  return ff.InstallDriver(shell_path, helper_path);
101
102
  }
102
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xfuture",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "description": "electron vpn sdk",
5
5
  "main": "x.js",
6
6
  "scripts": {