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

refine detect tool, support atc stream.

This commit is contained in:
winlin 2014-06-11 14:16:44 +08:00
parent 17cb8c4550
commit 55b99c90c7
4 changed files with 20 additions and 9 deletions

View file

@ -263,7 +263,12 @@ int srs_connect_app(srs_rtmp_t rtmp)
Context* context = (Context*)rtmp;
string tcUrl = "rtmp://";
tcUrl += context->vhost;
// TODO: FIXME: extrace shared method
if (context->vhost == RTMP_VHOST_DEFAULT) {
tcUrl += context->ip;
} else {
tcUrl += context->vhost;
}
tcUrl += ":";
tcUrl += context->port;
tcUrl += "/";