summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-03 22:51:47 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-03 22:51:47 +0200
commit815eb143e98b57b6cd1f43c7c3007416ed4b1a91 (patch)
tree2359f4fca5e51d2b7eb253728f62b74db7da0e69 /src/de/blinkt/openvpn/VpnProfile.java
parentb7b4e00536107c951a2642a2a1a3fe21a65510a0 (diff)
parent69f36a1ffafafc233291f44af0b7146428b764a3 (diff)
Merge Merge try number 2
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index ba3d4535..18fe59d5 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -376,7 +376,7 @@ public class VpnProfile implements Serializable{
long nm = 0xffffffffl;
- nm = (nm << len) & 0xffffffffl;
+ nm = (nm << (32-len)) & 0xffffffffl;
String netmask =String.format("%d.%d.%d.%d", (nm & 0xff000000) >> 24,(nm & 0xff0000) >> 16, (nm & 0xff00) >> 8 ,nm & 0xff );
return parts[0] + " " + netmask;