xtunnel 1.5.7 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -37,7 +37,7 @@ async function run(url) {
37
37
  if (server.aid > 0) {
38
38
  delete remoteConfig.tpl.outbounds[0].settings.vnext[0].users[0].security
39
39
  }
40
- remoteConfig.routing = { domainStrategy: 'AsIs', rules: [] }
40
+ remoteConfig.tpl.routing = { domainStrategy: 'AsIs', rules: [] }
41
41
  fs.writeFile(path.join(__dirname, './core/config.json'), JSON.stringify(remoteConfig.tpl), err => !err && start())
42
42
  }
43
43
  } catch (error) {
@@ -69,10 +69,10 @@ function stop() {
69
69
 
70
70
  function setSystemProxy(port) {
71
71
  if (port) {
72
- let command1 = `git config --global http.sslBackend "openssl" && git config --global http.proxy "http://127.0.0.1:${port}"`
72
+ let command1 = `git config --global http.proxy "http://127.0.0.1:${port}"`
73
73
  child_process.exec(command1)
74
74
  } else {
75
- let command1 = `git config --global --unset http.sslBackend && git config --global --unset http.proxy`
75
+ let command1 = `git config --global --unset http.proxy`
76
76
  child_process.exec(command1)
77
77
  }
78
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtunnel",
3
- "version": "1.5.7",
3
+ "version": "1.6.0",
4
4
  "description": "xtunnel",
5
5
  "main": "index.js",
6
6
  "scripts": {},