summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Szumski <will@cowboycoders.org>2016-11-22 21:22:25 +0000
committeryvesf <yvesf-git@xapek.org>2016-11-22 23:24:15 +0100
commitac2c930b678830b4666a82c61075eba11d37b7f9 (patch)
tree359d98d79f178590b684d74248d3a5a409f6b3b9
parent089c895f54af5bf5325c09dff794e7415296eb1d (diff)
downloadandiodine-ac2c930b678830b4666a82c61075eba11d37b7f9.tar.gz
andiodine-ac2c930b678830b4666a82c61075eba11d37b7f9.zip
fix bug with string equality test
-rw-r--r--src/main/java/org/xapek/andiodine/IodineVpnService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/xapek/andiodine/IodineVpnService.java b/src/main/java/org/xapek/andiodine/IodineVpnService.java
index 3f49e1f..bbe126b 100644
--- a/src/main/java/org/xapek/andiodine/IodineVpnService.java
+++ b/src/main/java/org/xapek/andiodine/IodineVpnService.java
@@ -210,7 +210,7 @@ public class IodineVpnService extends VpnService implements Runnable {
setStatus(ACTION_STATUS_CONNECT, mConfiguration.getId(), null);
String tunnelNameserver = IodineClient.getPropertyNetDns1();
- if (tunnelNameserver == "") {
+ if (tunnelNameserver.isEmpty()) {
Log.e(TAG, "No valid IPv4 name servers detected. Aborting...");
return;
}