clean VPN proxy settings before startup

This commit is contained in:
Nathan Freitas 2015-02-04 12:36:42 -05:00
parent 5cb6cb930d
commit 9467d7db27
1 changed files with 3 additions and 3 deletions

View File

@ -368,7 +368,8 @@ public class TorService extends Service implements TorServiceConstants, TorConst
if (action!=null){
if(action.equals(Intent.ACTION_BOOT_COMPLETED)||action.equals(CMD_START)){
setTorProfile(STATUS_ON);
clearVpnProxy();
setTorProfile(STATUS_ON);
}else if (action.equals(CMD_STOP)){
setTorProfile(STATUS_OFF);
}else if (action.equals(CMD_INIT)){
@ -1441,7 +1442,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
{
SharedPreferences prefs = TorServiceUtils.getSharedPrefs(getApplicationContext());
Editor ePrefs = prefs.edit();
ePrefs.remove("pref_proxy_type");
ePrefs.remove("pref_proxy_host");
ePrefs.remove("pref_proxy_port");