We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7dd5de commit 6165245Copy full SHA for 6165245
app/src/main/java/ru/krlvm/powertunnel/android/managers/PTManager.java
@@ -3,6 +3,7 @@
3
import android.content.Context;
4
import android.content.Intent;
5
import android.content.SharedPreferences;
6
+import android.net.VpnService;
7
import android.os.Handler;
8
import android.widget.Toast;
9
@@ -163,6 +164,7 @@ public static boolean isVPN(SharedPreferences prefs) {
163
164
165
public static void startTunnel(Context context) {
166
if(isVPN(context)) {
167
+ VpnService.prepare(context);
168
startVpn(context);
169
} else {
170
startProxyService(context);
0 commit comments