proxyOnly update

* do not run Tun2socks under proxyOnly
This commit is contained in:
Rurirei
2020-10-21 15:19:55 +08:00
committed by GitHub
parent 4602afc67e
commit a57aee9424
2 changed files with 12 additions and 8 deletions

View File

@@ -131,6 +131,7 @@ object V2RayServiceManager {
v2rayPoint.enableLocalDNS = service.defaultDPreference.getPrefBoolean(SettingsActivity.PREF_LOCAL_DNS_ENABLED, false)
v2rayPoint.forwardIpv6 = service.defaultDPreference.getPrefBoolean(SettingsActivity.PREF_FORWARD_IPV6, false)
v2rayPoint.domainName = service.defaultDPreference.getPrefString(AppConfig.PREF_CURR_CONFIG_DOMAIN, "")
v2rayPoint.proxyOnly = service.defaultDPreference.getPrefString(AppConfig.PREF_MODE, "VPN") != "VPN"
try {
v2rayPoint.runLoop()