summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-07-18 10:56:33 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-07-18 10:56:33 -0700
commit6320879fe15626cae513fabdd9d8f397637ce2d9 (patch)
tree7eb85ac62995b9e48e2d09537ac8e8036ca683ff
parent4b9e84f42f8f7805b9426b29c712911cac1e1d46 (diff)
downloadinfinitytier-6320879fe15626cae513fabdd9d8f397637ce2d9.tar.gz
infinitytier-6320879fe15626cae513fabdd9d8f397637ce2d9.zip
Fix for GitHub issue #358 and bump version to 1.1.13 (dev)
-rw-r--r--node/NetworkConfig.hpp5
-rw-r--r--version.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp
index 117b18d2..5271c5ad 100644
--- a/node/NetworkConfig.hpp
+++ b/node/NetworkConfig.hpp
@@ -365,9 +365,10 @@ public:
{
while (ptr < specialistCount) {
if ((specialists[ptr] & ZT_NETWORKCONFIG_SPECIALIST_TYPE_NETWORK_PREFERRED_RELAY) != 0) {
- return Address(specialists[ptr]);
+ return Address(specialists[ptr++]);
+ } else {
+ ++ptr;
}
- ++ptr;
}
return Address();
}
diff --git a/version.h b/version.h
index 9ef01d6d..f95ae688 100644
--- a/version.h
+++ b/version.h
@@ -32,6 +32,6 @@
/**
* Revision
*/
-#define ZEROTIER_ONE_VERSION_REVISION 12
+#define ZEROTIER_ONE_VERSION_REVISION 13
#endif