Comments (6)
@newdev8 thank you for raising this. @EstebanBorai, nice, quick fix. Curious that v0.5 introduced a bug, as we wrote specific logic to handle this case. I'll look into it, as macOS should not require a separate solution, I think.
from local-ip-address.
Interesting! Thanks for reporting @newdev8!
I will review it and get back to you!
from local-ip-address.
@jakewilliami I think we could reintroduce macOS
specific approach and use https://github.com/EstebanBorai/local-ip-address/blob/main/src/bsd.rs only for BSD based instead.
Having a dedicated macOS looks like a better approach.
from local-ip-address.
@newdev8 I just did a draft here: #98 reintroducing macOS impl.
Can you tell me if it works for you please?
from local-ip-address.
@EstebanBorai thanks for your quick reply!
I've tested it and works like a charm
from local-ip-address.
Oh dear, I think this is the logical mistake—this is the exact opposite filter we want! I inverted this and it works now on my macOS machine.
Obviously it's difficult to catch these "semantic" errors, as we can't test for exact local IP in our unit tests, unless we cross check it with ip -a
or something like that. I wonder how we can avoid these errors in future. Thank you again @newdev8 for bringing this to our attention!
from local-ip-address.
Related Issues (20)
- Fails to compile on Raspberry-Pi Flavor Linux HOT 1
- Compilation error with version local-ip-address-0.5.2 HOT 7
- error: build failed HOT 1
- Unexpected "\0" in the network interface name HOT 3
- failed to resolve: use of undeclared crate or module `env` HOT 2
- New release for windows-sys 0.48 HOT 3
- Windows 10 Chinese version is not supported HOT 13
- SIGSEGV if tun device is present HOT 4
- Additional interface info? HOT 12
- Cannot compile for Windows MSVC on Linux HOT 5
- Incorrect local IP address got on Windows HOT 4
- Hope to support FreeBSD OS HOT 3
- Use Os Error HOT 5
- Release HOT 6
- Use `std::alloc::alloc` instead of `libc::malloc` HOT 2
- Misleading error message when using non-`en0` interface on macOS HOT 1
- Update `neli` to latest version or change approach
- Determine the primary outbound local IP if multiple present in interfaces HOT 1
- conditional compilation for WebAssembly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from local-ip-address.