Fix the exception when addAllowedApplication

This commit is contained in:
Max Lv
2017-12-09 23:02:45 +08:00
parent f5a8513b00
commit 5bc7200d21
3 changed files with 7 additions and 4 deletions
@@ -152,7 +152,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
Log.e(tag, "Invalid package name", ex)
}
}
builder.addAllowedApplication(me)
if (!profile.bypass) builder.addAllowedApplication(me)
}
when (profile.route) {