summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-10-20 09:32:15 +0200
committerArne Schwabe <arne@rfc2549.org>2014-10-20 09:32:15 +0200
commit6dcc7ddd245daaa3d67915239436278129079f54 (patch)
tree0c1b693e21428abae1fe00992db6a681438f1bcf
parentd6fc599a25ac5706b6179ba49ee2ce4331bc2b93 (diff)
Fix warning for subnet always being shown
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java2
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);
}