Skip to content

Commit 76246ce

Browse files
authored
Merge pull request ipfs#34 from teran-mckinney/master
Closes: ipfs#6284 Add appropriate IPv6 ranges to defaultServerFilters
2 parents b66d7cc + 441d880 commit 76246ce

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

config/profile.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ type Profile struct {
1818
Transform Transformer
1919
}
2020

21-
// defaultServerFilters has a list of non-routable IPv4 prefixes
22-
// according to http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
21+
// defaultServerFilters has is a list of IPv4 and IPv6 prefixes that are private, local only, or unrouteable.
22+
// according to https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
23+
// and https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
2324
var defaultServerFilters = []string{
2425
"/ip4/10.0.0.0/ipcidr/8",
2526
"/ip4/100.64.0.0/ipcidr/10",
@@ -36,6 +37,11 @@ var defaultServerFilters = []string{
3637
"/ip4/198.51.100.0/ipcidr/24",
3738
"/ip4/203.0.113.0/ipcidr/24",
3839
"/ip4/240.0.0.0/ipcidr/4",
40+
"/ip6/100::/ipcidr/64",
41+
"/ip6/2001:2::/ipcidr/48",
42+
"/ip6/2001:db8::/ipcidr/32",
43+
"/ip6/fc00::/ipcidr/7",
44+
"/ip6/fe80::/ipcidr/10",
3945
}
4046

4147
// Profiles is a map holding configuration transformers. Docs are in docs/config.md

0 commit comments

Comments
 (0)