diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 | ||||
-rw-r--r-- | src/main/res/values-de/strings.xml | 1 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 2 |
3 files changed, 5 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; } 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 @@ <string name="vpnservice_error_handshake_failed">Handshake fehlgeschlagen</string> <string name="vpnservice_error_unknown_error_code">Unbekannter Fehler. Kode %d</string> <string name="vpnservice_error_unknown_error_string">Unbekannter Fehler. Grund: %s</string> + <string name="vpnservice_error_dns_detect_failed">Es wurden keine gültigen IPv4-Nameserver erkannt</string> <string name="idle">Leerlauf</string> <string name="warning">Warnung</string> <string name="error">Fehler</string> 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 @@ <string name="vpnservice_error_handshake_failed">Handshake failed</string> <string name="vpnservice_error_unknown_error_code">Unknown Error. Code %d</string> <string name="vpnservice_error_unknown_error_string">Unknown Error. Reason: %s</string> + <string name="vpnservice_error_dns_detect_failed">No valid IPv4 name servers detected</string> <string name="idle">Idle</string> <string name="warning">Warning</string> <string name="error">Error</string> @@ -85,4 +86,5 @@ <string name="main_about">About</string> <string name="pref_delete">Delete</string> + </resources> |