Network: Replaced magic number with named constant.
This commit is contained in:
parent
c758482ece
commit
1551e29f00
@ -98,7 +98,7 @@ AStringVector cNetwork::EnumLocalIPAddresses(void)
|
|||||||
// Enumerate all active adapters
|
// Enumerate all active adapters
|
||||||
for (auto pCurrAddresses = pAddresses; pCurrAddresses != nullptr; pCurrAddresses = pCurrAddresses->Next)
|
for (auto pCurrAddresses = pAddresses; pCurrAddresses != nullptr; pCurrAddresses = pCurrAddresses->Next)
|
||||||
{
|
{
|
||||||
if (pCurrAddresses->OperStatus != 1)
|
if (pCurrAddresses->OperStatus != IfOperStatusUp)
|
||||||
{
|
{
|
||||||
// Adapter not active, skip it:
|
// Adapter not active, skip it:
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user