diff options
author | Arne Schwabe <arne@blinkt.de> | 2012-05-03 11:05:51 +0200 |
---|---|---|
committer | Arne Schwabe <arne@blinkt.de> | 2012-05-03 11:05:51 +0200 |
commit | 69f36a1ffafafc233291f44af0b7146428b764a3 (patch) | |
tree | df014ff7249ae21affb2c15b4065bf2993ba9ce5 /src/de/blinkt/openvpn/VpnProfile.java | |
parent | 3d54881bc78b893ab286681338dd7b9b69d871b3 (diff) |
extract settings string to ressource file.
Fix calucation of netmaks
Make p2p assumption message clearer
closes issue #5
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index 04b5927f..683ba663 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; |