-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use NAT traversal option in host - is it possible? #290
Comments
UpdateI think that everything reduces to |
So, take a look at how the libp2p constructor constructs the host. You won't need to specify the Unfortunately, I'm not familiar with the specific error you're seeing. I'm currently working on a refactor that will allow configuring this but... it won't be ready for a while. For the moment, we'd welcome a patch that adds a |
After some digging, my remaining problem turns out to be unrelated the OP and will be fixed when this PR gets merged. In the Meanwhile, I'm happy to help with a NAT |
Given that this issue has been fixed, I'm closing. |
agreed - sorry I left it hanging |
Np. Keep up the good work. |
Iv'e been working with libp2p for a while, and would like to try
go-libp2p-nat
to address NAT issues we are facing. am currently constructing my hosts usinglibp2p.New
which is configured usinglibp2p.Option
s and they do not seem to allow for this option to be enabled.the basichost package, on the other hand, has two constructors
New
(depreciated) andNewHost
.NewHost
usesbhost.HostOpts
for configuration, which does allow for NAT, (but not for optional use of secure IO.)I've commented on issue #263 (which is closed) but am opening this as a separate issue, since I think it could be different. The problem I'm facing is that the muxer option in
bhost.HostOpts
is a different type (*msmux.MultistreamMuxer
) than what is returned bylibp2p.DefaultMuxer()
. When I pass a*msmux.MultistreamMuxer
toNewHost
, it compiles, but connections do not work.Any ideas?
The text was updated successfully, but these errors were encountered: