-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
sort local interfaces before selecting one #1273
Conversation
src/netutil.rs
Outdated
for iface in datalink::interfaces() { | ||
let mut ifaces = datalink::interfaces(); | ||
|
||
// put eth0 and wifi0, etc. up front of our list of candidates |
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.
Can you move everything from here on down into a separate function and add tests for it?
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.
sure
6380ccd
to
4c5edbf
Compare
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.
Beautiful, thanks!
happens to be what my WSL box looks like when I'm at WeWork (save the phony "eth0") |
solana-labs#1273) Bumps [flow-typed](https://github.com/flow-typed/flow-typed) from 3.2.1 to 3.3.1. - [Release notes](https://github.com/flow-typed/flow-typed/releases) - [Changelog](https://github.com/flow-typed/flow-typed/blob/master/CHANGELOG.md) - [Commits](flow-typed/flow-typed@v3.2.1...v3.3.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
cc #1101