Tezos admin client does not connect a node to peers properly
Environment
Latest mainnet branch
Expected behavior
Expected the Tezos node to connect to a peer.
Actual behavior
The Tezos node does not connect to a peer.
Steps to reproduce
When running a node in private mode, if you run ./tezos-admin-client connect address <node ip>:9732
or issue the RPC call directly, the node does not connect to the peer.
If, however, you do this it will connect to the peer:
curl http://localhost:8732/network/points/<node ip>:9732/trust
{}
// logs in the node
Jun 12 01:48:54 - validator.peer_6: Worker started for NetXgtSLGNJvN:idsMbqZqhyVU