Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Inform user of error status when tunnel name server cannot be detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Szumski authored and yvesf committed Nov 28, 2016
1 parent 67c09b5 commit 3805006
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/xapek/andiodine/IodineVpnService.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ public void run() {

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;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -85,4 +86,5 @@
<string name="main_about">About</string>
<string name="pref_delete">Delete</string>


</resources>

0 comments on commit 3805006

Please sign in to comment.