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 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/org') 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; } -- cgit v1.2.1