summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-02-22 18:52:49 +0100
committerMattes D <github@xoft.cz>2015-02-22 18:52:49 +0100
commit1551e29f00f74520f035fb6425ce09a80c965bcb (patch)
treecd04b4f6ee9da98432150fd9e6f61cb7764ec02e /src
parentcNetwork: Added EnumLocalIPAddresses() function. (diff)
downloadcuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.tar
cuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.tar.gz
cuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.tar.bz2
cuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.tar.lz
cuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.tar.xz
cuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.tar.zst
cuberite-1551e29f00f74520f035fb6425ce09a80c965bcb.zip
Diffstat (limited to 'src')
-rw-r--r--src/OSSupport/NetworkInterfaceEnum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/NetworkInterfaceEnum.cpp b/src/OSSupport/NetworkInterfaceEnum.cpp
index 675769065..38d946393 100644
--- a/src/OSSupport/NetworkInterfaceEnum.cpp
+++ b/src/OSSupport/NetworkInterfaceEnum.cpp
@@ -98,7 +98,7 @@ AStringVector cNetwork::EnumLocalIPAddresses(void)
// Enumerate all active adapters
for (auto pCurrAddresses = pAddresses; pCurrAddresses != nullptr; pCurrAddresses = pCurrAddresses->Next)
{
- if (pCurrAddresses->OperStatus != 1)
+ if (pCurrAddresses->OperStatus != IfOperStatusUp)
{
// Adapter not active, skip it:
continue;