diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index 117b18d2e..5271c5ad6 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 9ef01d6d5..f95ae688b 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