X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fserver_finder.cc;h=726437ea57b3eaa14fdea90667c38a053f5963cb;hp=b4b400b523edb1cf0f525f40b547df7462a671ae;hb=6f0a590bc3266f21ba577116219bd019e891d480;hpb=b433d33bcbfccf29171fe24c55fdee550a8c36aa diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc index b4b400b52..726437ea5 100644 --- a/src/lib/server_finder.cc +++ b/src/lib/server_finder.cc @@ -166,7 +166,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);