Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
allow blocking whole subnets #5363
Note that while the subnet is a type of network address, it does not get serialized, to avoid issues with a peer sending those in a peerlist. I'm not sure whether this is best that way, or with a filter-on-receive in the caller. This seems safer though.
I've changed the way it works, subnets are now totally separate from addresses. This should... address (har har) the issues with confusion and API abuse. Also the constant time lookup in m_blocked_hosts. There's still linear time lookup in m_blocked_subnets, but that one's manual only, no auto addition, so it'll be empty or very short.