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:
parent
2e6a575fb8
commit
755714993e
@ -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();
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user