Comments (4)
Does not look like there is an easy fix. In my tests I only get a bunch of question marks:
$ wmic path Win32_NetworkAdapter get Index,NetConnectionID /format:table | grep 12 | hexdump -C | head -1
00000000 31 32 20 20 20 20 20 3f 3f 3f 3f 20 20 20 20 20 |12 ???? |
Either find out how to get Unicode out of wmic
or find a different way to map a adapter index to a name.
from default-gateway.
Some more info https://stackoverflow.com/a/55312341/808699. Not happy with a extra temp file only to get the correct encoding, so maybe there are better solutions.
from default-gateway.
Found a workaround, released in 5.0.1.
> require(".").v6.sync()
{ gateway: '2001:db8::1', interface: '无线上网' }
from default-gateway.
Thanks for your help. Much appreciated!
from default-gateway.
Related Issues (14)
- idbconnector dependency HOT 7
- Windows: The gateway is not from external card HOT 2
- Support policy-based routing on Linux HOT 1
- Respect metrics on all platforms
- Code improvements HOT 1
- node version broken
- Parse /proc instead of forking to ip for linux HOT 1
- "interface" is a strict mode reserved keyword HOT 2
- require don't work well in windows electron HOT 2
- Can't get IP Address on Windows 11 HOT 7
- Unsupported platform FreeBSD HOT 12
- Support generic AIX platform (non-OS400) HOT 34
- Question about docs HOT 2
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 default-gateway.