1
0
Fork 0
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:
winlin 2014-05-17 15:55:58 +08:00
parent c59576146b
commit 952abbee03

View file

@ -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;