X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fserver_finder.cc;h=f347132e452a7f3dc0fa1caf996d4ea5e4988c31;hb=ada329f77032590bae1e18d05a87f94c82e14a55;hp=979046dabdd701829e176c86ddcc675eb860d9a9;hpb=f91d0e7734dc2c42ed9c9b953c6a57e530ea43f8;p=dcpomatic.git 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 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("Version").get_value_or (0) == SERVER_LINK_VERSION) { ServerDescription sd (ip, xml->number_child ("Threads")); { boost::mutex::scoped_lock lm (_mutex);