Code Monkey home page Code Monkey logo

Comments (4)

silverwind avatar silverwind commented on August 16, 2024

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.

silverwind avatar silverwind commented on August 16, 2024

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.

silverwind avatar silverwind commented on August 16, 2024

Found a workaround, released in 5.0.1.

> require(".").v6.sync()
{ gateway: '2001:db8::1', interface: '无线上网' }

from default-gateway.

WONDERlust91 avatar WONDERlust91 commented on August 16, 2024

Thanks for your help. Much appreciated!

from default-gateway.

Related Issues (14)

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.