Showing 2 of 2 files from the diff.

@@ -73,6 +73,9 @@
Loading
73 73
	IPColocationFactorThreshold int
74 74
	IPColocationFactorWhitelist map[string]struct{}
75 75
76 +
	// IPv6SubnetColocation controls whether /64 IPv6 subnets should be considered colocated.
77 +
	IPv6SubnetColocation bool
78 +
76 79
	// P7: behavioural pattern penalties.
77 80
	// This parameter has an associated counter which tracks misbehaviour as detected by the
78 81
	// router. The router currently applies penalties for the following behaviors:

@@ -14,9 +14,6 @@
Loading
14 14
	manet "github.com/multiformats/go-multiaddr-net"
15 15
)
16 16
17 -
// IPv6SubnetColocation controls whether /64 IPv6 subnets should be considered colocated.
18 -
var IPv6SubnetColocation = false
19 -
20 17
type peerStats struct {
21 18
	// true if the peer is currently connected
22 19
	connected bool
@@ -983,7 +980,7 @@
Loading
983 980
			ip6 := ip.String()
984 981
			res = append(res, ip6)
985 982
986 -
			if IPv6SubnetColocation {
983 +
			if ps.params.IPv6SubnetColocation {
987 984
				ip6mask := ip.Mask(net.CIDRMask(64, 128)).String()
988 985
				res = append(res, ip6mask)
989 986
			}
Files Coverage
blacklist.go 91.30%
comm.go 93.40%
discovery.go 69.82%
floodsub.go 90.57%
gossip_tracer.go 94.05%
gossipsub.go 88.01%
mcache.go 91.49%
notify.go 80.00%
peer_gater.go 60.49%
pubsub.go 81.67%
randomsub.go 79.76%
score.go 76.99%
score_params.go 97.47%
sign.go 57.89%
subscription.go 81.25%
tag_tracer.go 90.08%
topic.go 77.78%
trace.go 88.30%
tracer.go 81.43%
validation.go 90.12%
Project Totals (20 files) 82.81%
1793.1
1.14.x=.14.x
TRAVIS_OS_NAME=linux
1793.2
1.14.x=.14.x
TRAVIS_OS_NAME=linux
1794.2
1.14.x=.14.x
TRAVIS_OS_NAME=linux
1794.1
1.14.x=.14.x
TRAVIS_OS_NAME=linux
1
coverage:
2
  range: "50...100"
3
comment: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading