Skip to content

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

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

ipfs command uses config RPC address when acting as a client#122
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost 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

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

@ghost
Copy link
Author

ghost commented Sep 25, 2014

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

@ghost ghost 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
This pull request was closed.
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.

2 participants