From 38050063b38b451d5bba562c500e7a8303370f39 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 24 Nov 2016 18:20:02 +0000 Subject: Inform user of error status when tunnel name server cannot be detected --- src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 ++ src/main/res/values-de/strings.xml | 1 + src/main/res/values/strings.xml | 2 ++ 3 files changed, 5 insertions(+) (limited to 'src/main') 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; } diff --git a/src/main/res/values-de/strings.xml b/src/main/res/values-de/strings.xml index 23d9dcc..9b98757 100644 --- a/src/main/res/values-de/strings.xml +++ b/src/main/res/values-de/strings.xml @@ -49,6 +49,7 @@ Handshake fehlgeschlagen Unbekannter Fehler. Kode %d Unbekannter Fehler. Grund: %s + Es wurden keine gültigen IPv4-Nameserver erkannt Leerlauf Warnung Fehler diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 21a3fed..f584765 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -74,6 +74,7 @@ Handshake failed Unknown Error. Code %d Unknown Error. Reason: %s + No valid IPv4 name servers detected Idle Warning Error @@ -85,4 +86,5 @@ About Delete + -- cgit v1.2.1