hashicorp / memberlist

Golang package for gossip based membership and failure detection
Mozilla Public License 2.0
3.68k stars 443 forks source link

reduce number of addresses in loopback #302

Open mbver opened 5 months ago

mbver commented 5 months ago

the address in 127.0.1.0/24 and 127.0.2.0/24 are needed for TestMemberlist_JoinDifferentNetworksMultiMasks and TestMemberlist_JoinDifferentNetworksUniqueMask. Only a few addresses are needed in these tests. Creating too many addresses in loopback may cause unexpected problems on network stack of local machine. For example, git can not resolve github.com on my laptop!