Skip to content
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

ipfs command uses config RPC address when acting as a client #122

Closed
wants to merge 1 commit into from
Closed

ipfs command uses config RPC address when acting as a client #122

wants to merge 1 commit into from

Conversation

ehmry
Copy link
Contributor

@ehmry ehmry commented Sep 24, 2014

Rather than send commands to the hardcoded "localhost:12345", they should be sent to the RPCAddress that is set in the config. I changed the daemon client function ''SendCommand'' to take a multiaddr rather than a "host:port" string. This seemed like a reasonable thing to do since ''NewDaemonListener'' takes a multiaddr as its bind argument.

I also made a minor fix to a dht debugging printf.

@whyrusleeping
Copy link
Member

hmm... Im gonna wanna merge this with feat/snappy-cmd before master

err = daemon.SendCommand(com, dAddr)
if err != nil {
// Do locally
n, err := localNode(confDir, false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worried about code dup everywhere. room for errors. can we abstract this out into a function?

@jbenet
Copy link
Member

jbenet commented Sep 24, 2014

LGTM, but yes, as @whyrusleeping mentioned, this should prob be rebased on top of feat/snappy-cmd

@ehmry
Copy link
Contributor Author

ehmry commented Sep 25, 2014

I should have been working off of feat/snappy-cmd this whole time, these changes are moot.

@ehmry ehmry closed this Sep 25, 2014
@aschmahmann aschmahmann mentioned this pull request Sep 22, 2020
72 tasks
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
Disallow overwriting new records with older records on DHT PUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants