ProjectMeshnet / nodeatlas

Federated node mapping for mesh networks
GNU General Public License v3.0
58 stars 8 forks source link

Limit node registration by cjdns IPv6 #65

Closed MarkDDR closed 11 years ago

MarkDDR commented 11 years ago

All nodes added to the map should have a cjdns IPv6, or else they would be unable to peer with others. This means you could limit node registration from only hyperboria and allow an easy way to verify what node someone is editing/deleting (when that feature is added). A script could also be made in order to make the registration of nodes from a vps or server easier.

alexander-bauer commented 11 years ago

In the interests of making NodeAtlas a general meshnet map, I propose a configuration option such as AllowedNetworks, which would be a slice of some net type (I can't look up something appropriate at the moment, because I'm on my phone.) that would correctly wrap a string like [fc00::]/8. That would be used to sanity-check the address field in api.go's Api.PostNode(), and respond with invalidAddress or similar if inappropriate.