-
Notifications
You must be signed in to change notification settings - Fork 161
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
fix(iroh): handle rpc args in any position #1739
Conversation
@@ -28,7 +28,7 @@ use super::{BlobAddOptions, MAX_RPC_CONNECTIONS, MAX_RPC_STREAMS}; | |||
#[derive(Debug)] | |||
pub struct StartOptions { | |||
pub addr: SocketAddr, | |||
pub rpc_port: RpcPort, | |||
pub rpc_port: u16, |
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.
So we can't start with rpc port disabled anymore?
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.
For now I have removed the ability, yes. Lets work on getting the portless version for rpc supported soon to improve on this.
a88cb36
to
7f965ba
Compare
Something doesn't sit right, netsim works with this though it doesn't pass in |
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.
Other than it magically working when it maybe shouldn't, LGTM.
It is now possible to do any of these ``` > iroh start --rpc-port 1234 > iroh --rpc-port 1234 start > iroh console --rpc-port 1234 > iroh --rpc-port 1234 console ``` Closes n0-computer#1639
It is now possible to do any of these
Closes #1639