summaryrefslogtreecommitdiff
path: root/src/lib/server_finder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/server_finder.cc')
-rw-r--r--src/lib/server_finder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc
index 979046dab..f347132e4 100644
--- a/src/lib/server_finder.cc
+++ b/src/lib/server_finder.cc
@@ -167,7 +167,7 @@ ServerFinder::handle_accept (boost::system::error_code ec, shared_ptr<Socket> so
xml->read_string (s);
string const ip = socket->socket().remote_endpoint().address().to_string ();
- if (!server_found (ip)) {
+ if (!server_found (ip) && xml->optional_number_child<int>("Version").get_value_or (0) == SERVER_LINK_VERSION) {
ServerDescription sd (ip, xml->number_child<int> ("Threads"));
{
boost::mutex::scoped_lock lm (_mutex);