Comments (4)
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.
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.
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.
@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)
- Support i686-pc-windows-msvc HOT 2
- Build fails on x86_64 -msvc targets because clang.dll cannot be found HOT 1
- The documentation link in the README does not work HOT 2
- Panic in get_search_list when the SearchList registry key is missing HOT 1
- unix support HOT 3
- New release 0.2.1? HOT 2
- [Question] How to know which interface is the one used? HOT 5
- Consider upgrade socket2 to v0.4 HOT 1
- Can we get a new release for the winapi dep?
- Feature Request: Connection Profile HOT 2
- misaligned pointer dereference HOT 3
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 ipconfig.