amend a3c21ae, video-server localhost -> 127.0.0.1
[ardour.git] / gtk2_ardour / add_video_dialog.cc
index 4cb7f7668bf81e37a2d3e090ff5a4eca98dd9776..6d6830d26b4e89e0beced8beb4d84e0e078ac836 100644 (file)
@@ -322,8 +322,9 @@ AddVideoDialog::file_name (bool &local_file)
                std::string video_server_url = video_get_server_url(Config);
 
                /* check if video server is running locally */
-               if (video_get_docroot(Config).size() > 0
-                               && !video_server_url.compare(0, 16, "http://localhost"))
+               if (video_get_docroot(Config).size() > 0 &&
+                       (0 == video_server_url.compare (0, 16, "http://127.0.0.1") || 0 == video_server_url.compare (0, 16, "http://localhost"))
+                  )
                {
                        /* check if the file can be accessed */
                        int plen;