-
Notifications
You must be signed in to change notification settings - Fork 265
Feature Noise XKpsk3 IP from bond #4451
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
Conversation
| impl<'a> From<&'a Node> for SphinxNode { | ||
| fn from(node: &'a Node) -> Self { | ||
| let node_address_bytes = NymNodeRoutingAddress::from(node.mix_host) | ||
| let node_address_bytes = NymNodeRoutingAddress::from(node.mix_hosts[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.first()
| impl<'a> From<&'a Node> for SphinxNode { | ||
| fn from(node: &'a Node) -> Self { | ||
| let node_address_bytes = NymNodeRoutingAddress::from(node.mix_host) | ||
| let node_address_bytes = NymNodeRoutingAddress::from(node.mix_hosts[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.first()
| #[cfg_attr(feature = "wasm-serde-types", tsify(optional))] | ||
| #[serde(alias = "explicit_ip")] | ||
| pub explicit_ip: Option<IpAddr>, | ||
| pub explicit_ips: Option<Vec<IpAddr>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might break --custom-mixnet flag. please double check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the current state, --custom-mixnet is broken anyway because it doesn't exist on mix nodes and gateway. This doesn't mean that it will stay broken though
| owner: value.owner.clone(), | ||
| host: value.host.to_string(), | ||
| mix_port: Some(value.mix_host.port()), | ||
| mix_port: Some(value.mix_hosts[0].port()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as @octol says, first() : )
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Description
PR on top of #4360.
This PR remove the need of accurate information in the
self-describedAPI (apart from the noise support)IPs are retrieved from the bond, if it is a hostname, it will use the same resolving mechanism that currently exists. All resolved IPs are kept instead of just one.
Checklist:
CHANGELOG.md