   else
     a = address(ip)
     b = address(block)
-    # if we are comparing a v6 address to an v4 cidr range we need to 
-    # convert the v4 cidr to a v6 cidr
-    if not a.v4 and b.v4
-      subnetMask = 96 + b.subnetMask
-      block = '::' + b.toV6Group() + "/" + subnetMask
-      b = new ipv6.v6.Address(block)
     a.isInSubnet(b)
 
 isIpInAnyRange = (ip, blocks) ->

if require.main == module
  main()

# export these for testing
exports.compareIps = compareIps
exports.isIpInRange = isIpInRange
exports.isIpInAnyRange = isIpInAnyRange

  require path

getStatusLength = (edit, name, template) ->
  # https://support.twitter.com/articles/78124-posting-links-in-a-tweet
  fakeUrl = 'http://t.co/BzHLWr31Ce'
  status = Mustache.render template, name: name, url: fakeUrl, page: edit.page
