1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

support vhost for http flv.

This commit is contained in:
winlin 2015-08-21 12:08:25 +08:00
parent dd21eee7f0
commit c31a546eec

View file

@ -800,10 +800,6 @@ int SrsHttpStreamServer::http_mount(SrsSource* s, SrsRequest* r)
// remove the default vhost mount // remove the default vhost mount
mount = srs_string_replace(mount, SRS_CONSTS_RTMP_DEFAULT_VHOST"/", "/"); mount = srs_string_replace(mount, SRS_CONSTS_RTMP_DEFAULT_VHOST"/", "/");
// TODO: FIXME: check match
if (mount.at(0) != '/') {
mount = "/" + mount;
}
entry = new SrsLiveEntry(mount, tmpl->hstrs); entry = new SrsLiveEntry(mount, tmpl->hstrs);