Use the correct network block for he.net.
This commit is contained in:
parent
c673d76979
commit
0acd038eb6
1 changed files with 3 additions and 5 deletions
|
@ -1209,12 +1209,10 @@ func GroupKey(na *btcwire.NetAddress) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// OK, so now we know ourselves to be a IPv6 address.
|
// OK, so now we know ourselves to be a IPv6 address.
|
||||||
// bitcoind uses /32 for everything but what it calls he.net, which is
|
// bitcoind uses /32 for everything, except for Hurricane Electric's
|
||||||
// it uses /36 for. he.net is actualy 2001:470::/32, whereas bitcoind
|
// (he.net) IP range, which it uses /36 for.
|
||||||
// counts it as 2011:470::/32.
|
|
||||||
|
|
||||||
bits := 32
|
bits := 32
|
||||||
heNet := &net.IPNet{IP: net.ParseIP("2011:470::"),
|
heNet := &net.IPNet{IP: net.ParseIP("2001:470::"),
|
||||||
Mask: net.CIDRMask(32, 128)}
|
Mask: net.CIDRMask(32, 128)}
|
||||||
if heNet.Contains(na.IP) {
|
if heNet.Contains(na.IP) {
|
||||||
bits = 36
|
bits = 36
|
||||||
|
|
Loading…
Add table
Reference in a new issue