Git Product home page Git Product logo

Comments (4)

glademiller avatar glademiller commented on July 1, 2024

This might not be an issue opening up the registry key shows the first entry as well. Is this an edge case that needs to be handled or are the Windows machines at my office misconfigured?

from ipconfig.

liranringel avatar liranringel commented on July 1, 2024

Could you write the value of SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList?
It's supposed to be a comma separated string. Spaces are supposed to be invalid. If windows ignores the domains that contain spaces, I think we should adopt that behavior.

from ipconfig.

glademiller avatar glademiller commented on July 1, 2024

The value was

lan ad.x.com other.com,lan,ad.x.com,other.com

So the code in the library is functioning as expected. The open question would be as the whether that is an incorrect configuration or something that needs to be handled. Looking at the search list in the network adaptor properties only shows the last 3 items. Yesterday I modified the registry to exclude the first item with no ill affects to the operating system.

from ipconfig.

liranringel avatar liranringel commented on July 1, 2024

@glademiller it looks like a misconfiguration to me.
When I run ipconfig.exe /all with your value (lan ad.x.com other.com,lan,ad.x.com,other.com) I get 6 values (and even lan twice!), and on ncpa.cpl I see that they parse everything before the first comma as 1 (only 4 values).
I think the best thing to do is to leave the implementation the way it is.

from ipconfig.

Related Issues (12)

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.