Increased uselessly low $wgBlockCIDRLimit default for IPv6.
authorAaron <aschulz@wikimedia.org>
Wed, 6 Jun 2012 00:01:43 +0000 (17:01 -0700)
committerAaron <aschulz@wikimedia.org>
Wed, 6 Jun 2012 00:01:43 +0000 (17:01 -0700)
Change-Id: I5abc83981912f304c4034a32063ba09bcf6aa1b1

includes/DefaultSettings.php

index 8f61096..0a3d4ad 100644 (file)
@@ -3460,11 +3460,11 @@ $wgSysopEmailBans = true;
  *
  * CIDR notation is hard to understand, it's easy to mistakenly assume that a
  * /1 is a small range and a /31 is a large range. Setting this to half the
- * number of bits avoids such errors.
+ * number of bits avoids such errors for IPv4.
  */
 $wgBlockCIDRLimit = array(
        'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
-       'IPv6' => 64, # 2^64 = ~1.8x10^19 addresses
+       'IPv6' => 32, # Blocks larger than a /32 (~7.9x10^28 addresses) will not be allowed
 );
 
 /**