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:
parent
4d45b3305b
commit
cb2967c967
1 changed files with 1 additions and 8 deletions
|
@ -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://";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue