mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
properly filter disconnected interfaces on win32
This commit is contained in:
parent
f229da5468
commit
517ab5d56f
@ -534,6 +534,7 @@ scan_interfaces() {
|
||||
if (result == ERROR_SUCCESS) {
|
||||
IP_ADAPTER_ADDRESSES *p = addresses;
|
||||
while (p != NULL) {
|
||||
if (p->OperStatus == IfOperStatusUp) {
|
||||
// p->AdapterName appears to be a GUID. Not sure if this is
|
||||
// actually useful to anyone; we'll store the "friendly name"
|
||||
// instead.
|
||||
@ -572,6 +573,7 @@ scan_interfaces() {
|
||||
}
|
||||
|
||||
_interfaces.push_back(interface);
|
||||
}
|
||||
p = p->Next;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user