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

Could not run example host #149

Closed
ramilexe opened this issue Nov 9, 2016 · 4 comments
Closed

Could not run example host #149

ramilexe opened this issue Nov 9, 2016 · 4 comments

Comments

@ramilexe
Copy link

ramilexe commented Nov 9, 2016

Try to run example host

cd examples/hosts
go build
./hosts -l 4737

Show:

I am /ip4/0.0.0.0/tcp/4737/ipfs/QmXeKRxQb2nSPMSJhZzmQNjuqkYL2YJxgKAqbieKZWkW2r
listening for connections...

In another console run:

./hosts -d /ip4/127.0.0.1/tcp/4737/ipfs/QmXeKRxQb2nSPMSJhZzmQNjuqkYL2YJxgKAqbieKZWkW2r

Output:

ERROR net/identi: did not have own public key in Peerstore id.go:172

How to add public key to Peerstore?

@ghost
Copy link

ghost commented Nov 9, 2016

Try the fixes in #146

@ramilexe
Copy link
Author

ramilexe commented Nov 9, 2016

@lgierth tried your fix. It works only if run server and client with secio param:
-secio 1

@ramilexe
Copy link
Author

ramilexe commented Nov 9, 2016

@lgierth I investigated this issue. Since you added checking public key in outgoing message in commit 65273ab you always will get this error message in log

@whyrusleeping
Copy link
Contributor

I think this example has been deleted. I think we can close this issue now.

@whyrusleeping whyrusleeping added the status/in-progress In progress label Nov 28, 2016
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Nov 28, 2016
marten-seemann added a commit that referenced this issue Jul 1, 2022
use the transport.Upgrader interface
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

No branches or pull requests

2 participants