-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add swarm command #359
Add swarm command #359
Conversation
👍 |
LGTM |
Now these work: # explicitly connect to a peer
> ipfs2 swarm connect /ip4/192.168.1.221/tcp/4001/QmdcQL8YadJNaTAjG1AH2fH6BUwBKzYQCDtqWk79JGwtz2
connect QmdcQL8YadJNaTAjG1AH2fH6BUwBKzYQCDtqWk79JGwtz2 success
# list the peers we're connected to
> ipfs2 swarm peers
/ip4/104.131.131.82/tcp/4001/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
/ip4/192.168.1.142/tcp/4101/QmYT2Bc83dhS8oPquggQa98urzjSTEMpKKr2YEgxQinVJJ
/ip4/192.168.1.227/tcp/4001/QmYzAjMtCNKyBJ6SdsGm2xfo9G46XWeZEL2QoXjs2Z1cAV
/ip4/192.168.1.221/tcp/4001/QmdcQL8YadJNaTAjG1AH2fH6BUwBKzYQCDtqWk79JGwtz2 |
❤️ |
can you connect to a peer without their peer ID? Also, would be neat to now have a dht subcommand to allow us to be able to run find-peer RPC's so we can say: |
Not presently. we could add it. i'm wary of introducing ways to connect to things based on unauthenticated addresses. I'm heartened by the explicit address-driven PK distribution.
Yep, we'll get there -- #138 |
This will be useful for