-
Notifications
You must be signed in to change notification settings - Fork 65
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
Adds addresses field to gettowerinfo
#151
Conversation
Notice this is a breaking change for the protos, given it modifies them without updating its version. I don't think it is worth a version bump for them at the moment, maybe when more functionality has been added (or after the next major update). |
Something I'd like to discuss here would be how to address proto updates without them being breaking changes. I haven't really paid much attention to this so far, and maybe we don't want to, but there are ways of making it backward compatible. https://developers.google.com/protocol-buffers/docs/proto3#updating |
a3131f8
to
644be32
Compare
I've rebased this and made the change non-breaking. This was breaking due to the field order, and the only good reason for the ordering was having I've also moved the TL;DR: this is non-breaking now. |
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.
LGTM :)
teos/src/api/tor.rs
Outdated
loop { | ||
sleep(Duration::from_secs(1)).await; | ||
if shutdown_signal_tor.is_triggered() { | ||
break; | ||
} | ||
} |
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 can be replace with
shutdown_signal_tor.await;
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.
Indeed, nice one! I never liked that chuck of code
644be32
to
9ae985e
Compare
Should be good to go now |
d23a5f9
to
8477075
Compare
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.
LGTM otherwise!
teos/src/api/tor.rs
Outdated
|
||
// // NOTE: Needed to keep connection with control port & hidden service running, as soon as we leave | ||
// // this function the control port stream is dropped and the hidden service is killed | ||
// loop { | ||
// sleep(Duration::from_secs(1)).await; | ||
// if shutdown_signal_tor.is_triggered() { | ||
// break; | ||
// } | ||
// } |
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 is still here 😆
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.
Oops
8477075
to
0c1b4c1
Compare
This PR adds a new field to the
gettowerinfo
RPC call. The field includes data regarding the interfaces where the public API is being offered (i.e. ipv4 and/or tor).The rationale for this is having the API endpoint information handy without having to check the logs (this is currently most relevant for the onion address).
Fixes #143
cc/ @jochemin