1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine forward, use utility to generate the tcUrl

This commit is contained in:
winlin 2014-06-29 10:32:52 +08:00
parent 4d45b3305b
commit cb2967c967

View file

@ -100,14 +100,7 @@ int SrsForwarder::on_publish(SrsRequest* req, std::string forward_server)
port = ::atoi(s_port.c_str());
// generate tcUrl
tc_url = "rtmp://";
if (vhost == RTMP_VHOST_DEFAULT) {
tc_url += forward_server;
} else {
tc_url += vhost;
}
tc_url += "/";
tc_url += req->app;
tc_url = srs_generate_tc_url(forward_server, vhost, req->app, s_port);
// dead loop check
std::string source_ep = "rtmp://";