Change network mask to limit number of peers to 65k (#339)

This commit is contained in:
Misha Bragin
2022-05-28 12:54:09 +02:00
committed by GitHub
parent feff6dc966
commit 59a964eed8
5 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ type Network struct {
func NewNetwork() *Network {
return &Network{
Id: xid.New().String(),
Net: net.IPNet{IP: net.ParseIP("100.64.0.0"), Mask: net.IPMask{255, 192, 0, 0}},
Net: net.IPNet{IP: net.ParseIP("100.64.0.0"), Mask: net.IPMask{255, 255, 0, 0}},
Dns: "",
Serial: 0}
}