Revert "修正on_rtp_server_timeout hook时获取的端口非真实端口"

This reverts commit 07aaf4c8f7.
This commit is contained in:
ljx0305 2023-03-09 14:06:40 +08:00
parent 5f24842e7e
commit 2d7bddf5ca
1 changed files with 0 additions and 1 deletions

View File

@ -161,7 +161,6 @@ void RtpServer::start(uint16_t local_port, const string &stream_id, TcpMode tcp_
//随机端口rtp端口采用偶数
auto pair = std::make_pair(rtp_socket, rtcp_socket);
makeSockPair(pair, local_ip, re_use_port);
local_port = rtp_socket->get_local_port();
} else if (!rtp_socket->bindUdpSock(local_port, local_ip, re_use_port)) {
//用户指定端口
throw std::runtime_error(StrPrinter << "创建rtp端口 " << local_ip << ":" << local_port << " 失败:" << get_uv_errmsg(true));