fc00 / peers-api

find hyperboria peers via http(s)
https://peers.fc00.io
GNU Affero General Public License v3.0
6 stars 2 forks source link

Discuss filter by IPv4/IPv6 for UDP peers #12

Open benhylau opened 7 years ago

benhylau commented 7 years ago

It would be convenient to have this API support filtering by IPv4 vs. IPv6, because:

  1. Some nodes may not be able to route IPv6 over its physical interfaces
  2. cjdroute.conf has separate sections for IPv4 and IPv6 peers

But this filtering may be more appropriately done at the client code such as node-fc00. UDPInterface_beginConnection from Admin API don't differentiate IPv4 vs. IPv6, so the second point isn't strong either. Thoughts?

ansuz commented 7 years ago

I made a client library on which node-fc00 depends: https://github.com/fc00/peers-api-client, so the changes could go there.

I wouldn't be opposed to having it on the server, though. We'd just need to find an agreeable uri scheme.