mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #1059, support vhost in stream parameters. 2.0.246
This commit is contained in:
parent
366309ce2d
commit
1721e4ea4b
13 changed files with 161 additions and 69 deletions
|
@ -43,7 +43,7 @@ using namespace std;
|
|||
void srs_discovery_tc_url(
|
||||
string tcUrl,
|
||||
string& schema, string& host, string& vhost,
|
||||
string& app, string& port, std::string& param
|
||||
string& app, string& stream, string& port, std::string& param
|
||||
) {
|
||||
size_t pos = std::string::npos;
|
||||
std::string url = tcUrl;
|
||||
|
@ -70,6 +70,7 @@ void srs_discovery_tc_url(
|
|||
app = url;
|
||||
vhost = host;
|
||||
srs_vhost_resolve(vhost, app, param);
|
||||
srs_vhost_resolve(vhost, stream, param);
|
||||
}
|
||||
|
||||
void srs_vhost_resolve(string& vhost, string& app, string& param)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue