GoBackend: setConfigureIntent does nothing
It's only used from the ManageDialog in VpnDialogs, which in turn is only instantiated in the legacy VPN path. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -44,17 +44,15 @@ public final class GoBackend implements Backend {
|
||||
}
|
||||
|
||||
private final Context context;
|
||||
private final PendingIntent configurationIntent;
|
||||
@Nullable private Tunnel currentTunnel;
|
||||
@Nullable private Config currentConfig;
|
||||
private int currentTunnelHandle = -1;
|
||||
|
||||
private final Set<TunnelStateChangeNotificationReceiver> notifiers = new HashSet<>();
|
||||
|
||||
public GoBackend(final Context context, final PendingIntent configurationIntent) {
|
||||
public GoBackend(final Context context) {
|
||||
SharedLibraryLoader.loadSharedLibrary(context, "wg-go");
|
||||
this.context = context;
|
||||
this.configurationIntent = configurationIntent;
|
||||
}
|
||||
|
||||
private static native String wgGetConfig(int handle);
|
||||
@@ -194,8 +192,6 @@ public final class GoBackend implements Backend {
|
||||
final VpnService.Builder builder = service.getBuilder();
|
||||
builder.setSession(tunnel.getName());
|
||||
|
||||
builder.setConfigureIntent(configurationIntent);
|
||||
|
||||
for (final String excludedApplication : config.getInterface().getExcludedApplications())
|
||||
builder.addDisallowedApplication(excludedApplication);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user