0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 12:02:28 +02:00

Log when Android revokes the VPN permissions for easier debugging (closes #415)

This commit is contained in:
Arne Schwabe 2015-11-03 17:47:24 +01:00
parent 2e6a575fb8
commit 755714993e
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
@Override
public void onRevoke() {
VpnStatus.logInfo(R.string.permission_revoked);
mManagement.stopVPN();
endVpnService();
}

View File

@ -393,5 +393,6 @@
<string name="months_left">%d months left</string>
<string name="days_left">%d days left</string>
<string name="hours_left">%d hours left</string>
<string name="permission_revoked">VPN permission revoked by OS (e.g. other VPN program started), stopping VPN</string>
</resources>