Allow internet to resolve host names

This commit is contained in:
M66B 2016-01-23 08:28:32 +01:00
parent 2092c24671
commit 19a4bc396f
1 changed files with 7 additions and 0 deletions

View File

@ -688,6 +688,13 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
}
// Allow internet to resolve host names
try {
builder.addDisallowedApplication(getPackageName());
} catch (PackageManager.NameNotFoundException ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
}
// Build configure intent
Intent configure = new Intent(this, ActivityMain.class);
PendingIntent pi = PendingIntent.getActivity(this, 0, configure, PendingIntent.FLAG_UPDATE_CURRENT);