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

sort local interfaces before selecting one #1273

Merged
merged 2 commits into from
Sep 20, 2018

Conversation

rob-solana
Copy link
Contributor

cc #1101

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Copy link
Contributor

@garious garious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful, thanks!

@rob-solana
Copy link
Contributor Author

happens to be what my WSL box looks like when I'm at WeWork (save the phony "eth0")

@rob-solana rob-solana merged commit 8ccfb26 into solana-labs:master Sep 20, 2018
@rob-solana rob-solana deleted the network-select branch September 20, 2018 16:47
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
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>
2501babe pushed a commit to 2501babe/solana that referenced this pull request May 13, 2024
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