This PR fixes peer resolution, but requires rqlite 6 and later. For rqlite <6, the peer http ports are not available in status, and the nodes API does not exist. In previous implementation, the leader http port was being given to each peer entry, so if configured with different http ports, they would not be reachable. This PR's implementation also omits unreachable, or otherwise unresponsive peers, as determined by raft.
This PR fixes peer resolution, but requires rqlite 6 and later. For rqlite <6, the peer http ports are not available in status, and the nodes API does not exist. In previous implementation, the leader http port was being given to each peer entry, so if configured with different http ports, they would not be reachable. This PR's implementation also omits unreachable, or otherwise unresponsive peers, as determined by raft.