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

update srt2rtmp about rtmp listen tcp port

This commit is contained in:
runner365 2020-02-13 16:58:35 +08:00
parent 76204fa2ba
commit 94741c1676

View file

@ -218,7 +218,7 @@ rtmp_client::rtmp_client(std::string key_path):_key_path(key_path)
break; break;
} }
} }
port = (port == 0) ? 1935 : port;
if (_vhost == DEF_VHOST) { if (_vhost == DEF_VHOST) {
sprintf(url_sz, "rtmp://127.0.0.1:%d/%s/%s", port, sprintf(url_sz, "rtmp://127.0.0.1:%d/%s/%s", port,
_appname.c_str(), _streamname.c_str()); _appname.c_str(), _streamname.c_str());