merge commit

This commit is contained in:
robvde 2012-10-04 09:03:15 +04:00
commit d28dc2f1d8
3 changed files with 5 additions and 3 deletions

View file

@ -3266,7 +3266,7 @@ namespace WebsitePanel.EnterpriseServer
var ip = IPAddress.Parse(subnetMask);
if (ip.V4) {
int cidr = 32;
long mask = (long)ip.Address;
var mask = ip.Address;
while ((mask & 1) == 0 && cidr > 0) {
mask >>= 1;
cidr -= 1;