Note and indicate servers with bad link version (#982).
[dcpomatic.git] / src / tools / dcpomatic_cli.cc
index 31681a7fca7c7e9341f89b0cba2dd7ee041e7dad..52a113cbb4c72d6693faf84677a430cc3fc81e3e 100644 (file)
@@ -121,7 +121,7 @@ list_servers ()
 {
        while (true) {
                int N = 0;
-               list<EncodeServerDescription> servers = EncodeServerFinder::instance()->servers ();
+               list<EncodeServerDescription> servers = EncodeServerFinder::instance()->good_servers ();
 
                /* This is a bit fiddly because we want to list configured servers that are down as well
                   as all those (configured and found by broadcast) that are up.
@@ -167,6 +167,11 @@ list_servers ()
                                cout << std::left << setw(24) << i.host_name() << " UP     " << i.threads() << "\n";
                                ++N;
                        }
+
+                       /* And those that have a bad version */
+                       BOOST_FOREACH (EncodeServerDescription i, EncodeServerFinder::instance()->good_servers()) {
+                               cout << std::left << setw(24) << i.host_name() << " bad version\n";
+                       }
                }
 
                dcpomatic_sleep (1);