mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
SRT: use const string to sprint rtmp url. (#2847)
This commit is contained in:
parent
51ca3fd80a
commit
4434bb1a25
1 changed files with 2 additions and 2 deletions
|
@ -268,10 +268,10 @@ rtmp_client::rtmp_client(std::string key_path):_key_path(key_path)
|
|||
break;
|
||||
}
|
||||
}
|
||||
port = (port == 0) ? 1935 : port;
|
||||
port = (port == 0) ? SRS_CONSTS_RTMP_DEFAULT_PORT : port;
|
||||
|
||||
std::stringstream ss;
|
||||
ss << "rtmp://127.0.0.1";
|
||||
ss << "rtmp://" << SRS_CONSTS_LOCALHOST;
|
||||
ss << ":" << port;
|
||||
ss << "/" << _appname;
|
||||
if (_vhost != DEF_VHOST) {
|
||||
|
|
Loading…
Reference in a new issue