-
-
Notifications
You must be signed in to change notification settings - Fork 107
fix: advertise observed addresses for private joiners #2088
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
| extract_sender_from_message_mut(&mut peer_conn.msg) | ||
| { | ||
| if sender_mut.peer.addr.ip().is_unspecified() { | ||
| let sender_ip = new_peer_id.addr.ip(); |
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.
We shouldnt need to do this, if we need to do this then we must rethink this a bit. We shouldnt have a public IP until is given back by the gateway.
| bincode::deserialize(data).map_err(|err| ConnectionError::Serialization(Some(err))) | ||
| } | ||
|
|
||
| fn is_publicly_routable(ip: IpAddr) -> bool { |
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.
We shouldnt need to do this, seems like a hack.
| } | ||
| } | ||
|
|
||
| fn is_publicly_routable(ip: IpAddr) -> bool { |
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.
Duplicate functiom.
|
Closing in favor of a redesigned fix: we need to make the joiner address optional and fill it in at the gateway, not mutate sender metadata at the transport layer. |
Summary
Testing