mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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) {
|
if (result == ERROR_SUCCESS) {
|
||||||
IP_ADAPTER_ADDRESSES *p = addresses;
|
IP_ADAPTER_ADDRESSES *p = addresses;
|
||||||
while (p != NULL) {
|
while (p != NULL) {
|
||||||
|
if (p->OperStatus == IfOperStatusUp) {
|
||||||
// p->AdapterName appears to be a GUID. Not sure if this is
|
// p->AdapterName appears to be a GUID. Not sure if this is
|
||||||
// actually useful to anyone; we'll store the "friendly name"
|
// actually useful to anyone; we'll store the "friendly name"
|
||||||
// instead.
|
// instead.
|
||||||
@ -572,6 +573,7 @@ scan_interfaces() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_interfaces.push_back(interface);
|
_interfaces.push_back(interface);
|
||||||
|
}
|
||||||
p = p->Next;
|
p = p->Next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user