amend a3c21ae
, video-server localhost -> 127.0.0.1
This commit is contained in:
parent
506fb96ad7
commit
775a400007
|
@ -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;
|
||||
|
|
|
@ -3902,7 +3902,7 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
|
|||
Config->set_video_advanced_setup(false);
|
||||
} else {
|
||||
std::ostringstream osstream;
|
||||
osstream << "http://localhost:" << video_server_dialog->get_listenport() << "/";
|
||||
osstream << "http://127.0.0.1:" << video_server_dialog->get_listenport() << "/";
|
||||
Config->set_video_server_url(osstream.str());
|
||||
Config->set_video_server_docroot(icsd_docroot);
|
||||
Config->set_video_advanced_setup(true);
|
||||
|
|
|
@ -118,7 +118,7 @@ VideoUtils::video_get_server_url (ARDOUR::RCConfiguration* config)
|
|||
if (config->get_video_advanced_setup()) {
|
||||
return config->get_video_server_url();
|
||||
}
|
||||
return X_("http://localhost:1554");
|
||||
return X_("http://127.0.0.1:1554");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user