Chris Goes
Chris Goes
I wish that would work, but unfortunately, it doesn't seem to do the trick. On my Windows 10 system, it returns the MAC for Ethernet 5, which is the Npcap...
In Python, here's what's happening: ```python Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>...
Here's a solution that might work instead: ```python >>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) >>> s.connect(('1.1.1.1', 53)) >>> s.getsockname() ('10.0.0.166', 57372) ``` Basically, try to connect to Cloudflare DNS, and use...
Looks good, go ahead and open a pull request. Thanks Calvin!
@cyberhobbes Since there isn't a method that doesn't work without having to reach out to the internet (requiring `network_request` being set to true), I'm going to leave it open. Thanks...
Thank you for the detailed report! Generally speaking, the case of a non-existent host is currently severely punished performance wise, due to hitting every command available. This is a known...
One potential (though far from ideal) workaround is to execute the function in a thread and timeout after a short while, e.g. `thread.join(timeout=0.5)`. Docs: https://docs.python.org/3.7/library/threading.html#threading.Thread.join If you can think of...
That seems reasonable enough. Pretty busy currently, so while I may be able to get to it Saturday, it'll probably be more like next Saturday since I need to find...
@gitruili Go for it. In the pull request, include samples of some of the common commands on the device, e.g. `arp`.
Ignore my previous comment, apologies. We know what the command output is going to be. What I'd like contributed back: * [ ] If there were any bugs, a fix...