diff --git a/src/Rtp/RtpServer.cpp b/src/Rtp/RtpServer.cpp index 01afff7c..513c3e56 100644 --- a/src/Rtp/RtpServer.cpp +++ b/src/Rtp/RtpServer.cpp @@ -176,6 +176,8 @@ void RtpServer::start(uint16_t local_port, const MediaTuple &tuple, TcpMode tcp_ udp_server = std::make_shared(); (*udp_server)[RtpSession::kOnlyTrack] = only_track; (*udp_server)[RtpSession::kUdpRecvBuffer] = udpRecvSocketBuffer; + (*udp_server)[RtpSession::kVhost] = tuple.vhost; + (*udp_server)[RtpSession::kApp] = tuple.app; udp_server->start(local_port, local_ip); rtp_socket = nullptr; }