authentication/strategies/ipstrategycreator.js
function ip2long( a, b, c, d ) {
   for (
     c = b = 0;
     d = a.split('.')[b++];
     c +=
     d >> 8
     |
     b > 4 ?
     NaN
     :
     d * (1 << -8 * b)
     )
   d = parseInt(
     +d
     &&
     d
     );
   return c
   }
function ip2long( a, b, c, d ) {
   for (
     c = b = 0;
     d = a.split('.')[b++];
     c +=
     d >> 8
     |
     b > 4 ?
     NaN
     :
     d * (1 << -8 * b)
     )
   d = parseInt(
     +d
     &&
     d
     );
   return c
   }
function ip2long ( a , b , c , d ) { for ( c = b = 0 ; d = a . split ( '.' ) [ b ++ ] ; c += d >> 8 | b > 4 ? NaN : d * ( 1 << - 8 * b ) ) d = parseInt ( + d && d ) ; return c }
Convert an IP to a long integer.
Convert an IP to a long integer .