1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

refine the mount and dir to /console

This commit is contained in:
winlin 2015-08-12 12:49:22 +08:00
parent eab538d2e4
commit 1261916eab

View file

@ -826,12 +826,12 @@ int SrsServer::http_handle()
// TODO: FIXME: for console. // TODO: FIXME: for console.
// TODO: FIXME: support reload. // TODO: FIXME: support reload.
std::string dir = _srs_config->get_http_stream_dir() + "/srs-console"; std::string dir = _srs_config->get_http_stream_dir() + "/console";
if ((ret = http_api_mux->handle("/console/", new SrsHttpFileServer(dir))) != ERROR_SUCCESS) { if ((ret = http_api_mux->handle("/console/", new SrsHttpFileServer(dir))) != ERROR_SUCCESS) {
srs_error("http: mount console dir=%s failed. ret=%d", dir.c_str(), ret); srs_error("http: mount console dir=%s failed. ret=%d", dir.c_str(), ret);
return ret; return ret;
} }
srs_trace("http: console mount to %s", dir.c_str()); srs_trace("http: api mount /console to %s", dir.c_str());
#endif #endif
return ret; return ret;