-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
STUN support #26
STUN support #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just linked a few helpful functions
ecd3be7
to
6b6ecad
Compare
@SamWilsn would you mind taking a look at this too? |
Cargo.toml
Outdated
@@ -14,12 +14,14 @@ env_logger = "0.8.2" | |||
eth2_ssz = "0.1.2" | |||
eth2_ssz_derive = "0.1.0" | |||
futures = "0.3.13" | |||
get_if_addrs = "0.5.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried that this hasn't been updated in some time. Some alternatives might be heim
or interfaces
. I think heim
is more mature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got stuck on getting async working with heim
. If you feel like pairing with me to fix it, that would be cool. Otherwise, I've got an implementation with interfaces
ready to go in c2a564c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with interfaces
if you are, but I'm okay with pairing too. I think you'll want to do something like:
use futures_util::stream::TryStreamExt;
let ifaces: Result<Vec<_>, _> = heim::net::nic().try_collect().await;
I'd actually have to sit down and give it a go though.
51222da
to
cf3e942
Compare
Binding to 127.0.0.1 prevents messages from properly sending to a non-loopback address.
This makes it easier to connect two peers locally if global connection is unavailable.
get_if_addrs is probably abandoned, based on lack of changes for more than 3 years.
Closes #23