diff options
Diffstat (limited to 'node/NetworkConfig.hpp')
-rw-r--r-- | node/NetworkConfig.hpp | 5 |
1 files changed, 3 insertions, 2 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(); } |