Merge pull request #209 from svost/he
author0xDEADFACE <masmfan@gmail.com>
Fri, 17 Apr 2015 19:41:27 +0000 (22:41 +0300)
committer0xDEADFACE <masmfan@gmail.com>
Fri, 17 Apr 2015 19:41:27 +0000 (22:41 +0300)
Hurricane Electric uses block 2001:470::, not 2011:470::

src/netbase.cpp

index f4fc537..8f94b47 100644 (file)
@@ -906,7 +906,7 @@ std::vector<unsigned char> CNetAddr::GetGroup() const
         nBits = 4;
     }
     // for he.net, use /36 groups
-    else if (GetByte(15) == 0x20 && GetByte(14) == 0x11 && GetByte(13) == 0x04 && GetByte(12) == 0x70)
+    else if (GetByte(15) == 0x20 && GetByte(14) == 0x01 && GetByte(13) == 0x04 && GetByte(12) == 0x70)
         nBits = 36;
     // for the rest of the IPv6 network, use /32 groups
     else