mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use server ip or name for forward tcurl.
This commit is contained in:
parent
c59576146b
commit
952abbee03
1 changed files with 5 additions and 1 deletions
|
@ -99,7 +99,11 @@ int SrsForwarder::on_publish(SrsRequest* req, std::string forward_server)
|
|||
|
||||
// generate tcUrl
|
||||
tc_url = "rtmp://";
|
||||
tc_url += vhost;
|
||||
if (vhost == RTMP_VHOST_DEFAULT) {
|
||||
tc_url += forward_server;
|
||||
} else {
|
||||
tc_url += vhost;
|
||||
}
|
||||
tc_url += "/";
|
||||
tc_url += req->app;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue