Giter VIP home page Giter VIP logo

Comments (6)

jakewilliami avatar jakewilliami commented on June 11, 2024 1

@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.

EstebanBorai avatar EstebanBorai commented on June 11, 2024

Interesting! Thanks for reporting @newdev8!
I will review it and get back to you!

from local-ip-address.

EstebanBorai avatar EstebanBorai commented on June 11, 2024

@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.

EstebanBorai avatar EstebanBorai commented on June 11, 2024

@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.

newdev8 avatar newdev8 commented on June 11, 2024

@EstebanBorai thanks for your quick reply!

I've tested it and works like a charm 🍀.

from local-ip-address.

jakewilliami avatar jakewilliami commented on June 11, 2024

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.

Before:
Screen Shot 2023-01-05 at 7 43 54 PM

After:
Screen Shot 2023-01-05 at 7 45 18 PM

Diff:
Screen Shot 2023-01-05 at 7 45 45 PM


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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.