summaryrefslogtreecommitdiff
path: root/common/tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/tools.cpp')
-rw-r--r--common/tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tools.cpp b/common/tools.cpp
index d46e8c1..a1a5f4b 100644
--- a/common/tools.cpp
+++ b/common/tools.cpp
@@ -64,7 +64,7 @@ string GetAddressByInterface(string Interface){
}
string GetNetworkInterfaceByIndex(int Index, bool skipLoop){
StringVector interfaces = GetNetworkInterfaces(skipLoop);
- if(interfaces.size() < 0)
+ if(interfaces.size() > 0)
return interfaces[Index];
else
return string();