diff options
author | Will Szumski <will@cowboycoders.org> | 2016-11-22 21:22:25 +0000 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2016-11-22 23:24:15 +0100 |
commit | ac2c930b678830b4666a82c61075eba11d37b7f9 (patch) | |
tree | 359d98d79f178590b684d74248d3a5a409f6b3b9 | |
parent | 089c895f54af5bf5325c09dff794e7415296eb1d (diff) | |
download | andiodine-ac2c930b678830b4666a82c61075eba11d37b7f9.tar.gz andiodine-ac2c930b678830b4666a82c61075eba11d37b7f9.zip |
fix bug with string equality test
-rw-r--r-- | src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 |
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; } |