Comparing version 1.2.8 to 1.2.9
@@ -98,6 +98,6 @@ let xFuturePath = ""; | ||
ff.SetGlobalMode(isGlobalMode, ipdir); | ||
parser.isGlobalMode = isGlobalMode; | ||
if (isGlobalMode == parser.isGlobalMode) { | ||
return; | ||
} | ||
parser.isGlobalMode = isGlobalMode; | ||
let K_Connected = 2; | ||
@@ -104,0 +104,0 @@ if (this.GetCurrentStatus() == K_Connected) { |
{ | ||
"name": "xfuture", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "electron vpn sdk", | ||
@@ -46,4 +46,7 @@ "main": "x.js", | ||
} | ||
}, | ||
"win":{ | ||
"requestedExecutionLevel": "highestAvailable" | ||
} | ||
} | ||
} |
@@ -206,19 +206,19 @@ | ||
if (!this.isGlobalMode) { | ||
var A = {}; | ||
A.type = "field"; | ||
A.domain = ["geosite:cn"]; | ||
A.outboundTag = "direct"; | ||
rules.push(A); | ||
var B = {}; | ||
B.type = "field"; | ||
B.ip = ["geoip:private", "geoip:cn"]; | ||
B.outboundTag = "direct"; | ||
rules.push(B); | ||
var C = {}; | ||
C.type = "field"; | ||
C.domain = ["geosite:geolocation-!cn"]; | ||
C.outboundTag = "proxy"; | ||
rules.push(C); | ||
rules = [ | ||
{ | ||
"type":"field", | ||
"domain":["geosite:cn"], | ||
"outboundTag":"direct" | ||
}, | ||
{ | ||
"type":"field", | ||
"ip":["geoip:private", "geoip:cn"], | ||
"outboundTag":"direct" | ||
}, | ||
{ | ||
"type":"field", | ||
"domain":["geosite:geolocation-!cn"], | ||
"outboundTag":"proxy" | ||
} | ||
] | ||
} | ||
@@ -230,6 +230,14 @@ return rules; | ||
var base = { | ||
"remark": "Unknown", | ||
"remark": "MaoDou", | ||
"log": { | ||
"loglevel": "info" | ||
}, | ||
"tun": { | ||
"inet4_address": "172.19.0.1/30", | ||
"stack": "system", | ||
"mtu": 9000, | ||
"auto_route": true, | ||
"auto_detect_interface": true, | ||
"override_android_vpn": false | ||
}, | ||
"inbounds": [ | ||
@@ -281,3 +289,10 @@ { | ||
} | ||
] | ||
], | ||
"dns": { | ||
"hosts": { | ||
"domain:googleapis.cn": "googleapis.com", | ||
"dns.google": "8.8.8.8", | ||
}, | ||
"servers":["8.8.8.8", "8.8.4.4", "1.1.1.1", "1.0.0.1"] | ||
} | ||
} | ||
@@ -284,0 +299,0 @@ return base; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
515
117916290
19