winlin

use server ip or name for forward tcurl.

... ... @@ -99,7 +99,11 @@ int SrsForwarder::on_publish(SrsRequest* req, std::string forward_server)
// generate tcUrl
tc_url = "rtmp://";
if (vhost == RTMP_VHOST_DEFAULT) {
tc_url += forward_server;
} else {
tc_url += vhost;
}
tc_url += "/";
tc_url += req->app;
... ...