mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Utils::network_interface returns pcap compatible names on Windows.
This commit is contained in:
@@ -63,7 +63,7 @@ struct InterfaceCollector {
|
||||
|
||||
#ifdef WIN32
|
||||
bool operator() (PIP_ADAPTER_ADDRESSES addr) {
|
||||
ifaces.insert(addr->AdapterName);
|
||||
ifaces.insert(string("\\Device\\NPF_") + addr->AdapterName);
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user