Skip to content

Commit

Permalink
Blocklisted
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 15, 2022
1 parent d74e7c8 commit 2227540
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/ipfs/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,24 @@ func createRepository(dir string) (string, error) {
cfg.Swarm.ConnMgr.LowWater = 1
cfg.Swarm.Transports.Network.Relay = config.False
cfg.Swarm.Transports.Network.QUIC = config.False
cfg.Swarm.AddrFilters = []string{
"/ip4/10.0.0.0/ipcidr/8",
"/ip4/100.64.0.0/ipcidr/10",
"/ip4/169.254.0.0/ipcidr/16",
"/ip4/172.16.0.0/ipcidr/12",
"/ip4/192.0.0.0/ipcidr/24",
"/ip4/192.0.2.0/ipcidr/24",
"/ip4/192.168.0.0/ipcidr/16",
"/ip4/198.18.0.0/ipcidr/15",
"/ip4/198.51.100.0/ipcidr/24",
"/ip4/203.0.113.0/ipcidr/24",
"/ip4/240.0.0.0/ipcidr/4",
"/ip6/100::/ipcidr/64",
"/ip6/2001:2::/ipcidr/48",
"/ip6/2001:db8::/ipcidr/32",
"/ip6/fc00::/ipcidr/7",
"/ip6/fe80::/ipcidr/10",
}

// Create the repo with the config
if err = fsrepo.Init(dir, cfg); err != nil {
Expand Down

0 comments on commit 2227540

Please sign in to comment.