From b75e8e41742fb5406cf3958c3502fdb368b8087a Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Mon, 6 Jun 2016 12:37:53 +0200 Subject: [PATCH] Reset stored values on resetProxy --- .../github/dfa/diaspora_android/util/OrbotStatusReceiver.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/dfa/diaspora_android/util/OrbotStatusReceiver.java b/app/src/main/java/com/github/dfa/diaspora_android/util/OrbotStatusReceiver.java index 71012d64..38fa8984 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/util/OrbotStatusReceiver.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/util/OrbotStatusReceiver.java @@ -115,6 +115,8 @@ public class OrbotStatusReceiver extends BroadcastReceiver { public static void resetProxy(Context context) { try { + OrbotStatusReceiver.host = ""; + OrbotStatusReceiver.port = 0; NetCipher.clearProxy(); WebkitProxy.resetProxy(MainActivity.class.getName(), context.getApplicationContext()); } catch (Exception e) {