diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-10-20 09:32:15 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-10-20 09:32:15 +0200 |
commit | 6dcc7ddd245daaa3d67915239436278129079f54 (patch) | |
tree | 0c1b693e21428abae1fe00992db6a681438f1bcf /main/src | |
parent | d6fc599a25ac5706b6179ba49ee2ce4331bc2b93 (diff) |
Fix warning for subnet always being shown
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java index 06612743..cc6daf6b 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java +++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java @@ -698,7 +698,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac VpnStatus.logWarning(R.string.ip_not_cidr, local, netmask, mode); } } - if (("p2p".equals(mode)) && mLocalIP.len < 32 || "net30".equals("net30") && mLocalIP.len < 30) { + if (("p2p".equals(mode) && mLocalIP.len < 32) || ("net30".equals(mode) && mLocalIP.len < 30)) { VpnStatus.logWarning(R.string.ip_looks_like_subnet, local, netmask, mode); } |