diff options
author | Will Szumski <will@cowboycoders.org> | 2016-11-24 18:20:02 +0000 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2016-11-28 19:53:44 +0100 |
commit | 38050063b38b451d5bba562c500e7a8303370f39 (patch) | |
tree | f3c7747a536f0c17dafba3149acb2d2f72b19453 /src/main/java/org | |
parent | 67c09b54d28f20cfad41814d2b49c7551971ee6d (diff) | |
download | andiodine-38050063b38b451d5bba562c500e7a8303370f39.tar.gz andiodine-38050063b38b451d5bba562c500e7a8303370f39.zip |
Inform user of error status when tunnel name server cannot be detected
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/xapek/andiodine/IodineVpnService.java b/src/main/java/org/xapek/andiodine/IodineVpnService.java index bbe126b..5e1c6f5 100644 --- a/src/main/java/org/xapek/andiodine/IodineVpnService.java +++ b/src/main/java/org/xapek/andiodine/IodineVpnService.java @@ -211,6 +211,8 @@ public class IodineVpnService extends VpnService implements Runnable { String tunnelNameserver = IodineClient.getPropertyNetDns1(); if (tunnelNameserver.isEmpty()) { + String errorMessage = getString(R.string.vpnservice_error_dns_detect_failed); + setStatus(ACTION_STATUS_ERROR, mConfiguration.getId(), errorMessage); Log.e(TAG, "No valid IPv4 name servers detected. Aborting..."); return; } |