Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move peer discovery from "services" to "peers-clear" #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geobeau
Copy link

@geobeau geobeau commented May 9, 2022

This is necessary to implement TLS as the "service" info only report the clear service port.
It will be easy to expand the "services_name" to return peers-tls

Required for #8


#[test]
fn parse_peers_works() {
let work = "6,3000,[[12A0,aerospike.preprod.crto.in,[192.168.1.13:4333]],[11A1,aerospike.preprod.crto.in,[192.168.3.78]],[11A1,aerospike.preprod.crto.in,[localhost]]]";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The used Hostnames and IPs look like real ones. Maybe change that to dummy addresses?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IP were dummy but not the hostname indeed.

Changed them also corrected a bug where the tls_hostname is ommited

This is necessary to implement TLS as service only report the clear service port.
It will be easy to expand the "services_name" to return peers-tls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants