From 9727e03c2ee565c93b4c8c2b21e82d817b1afde0 Mon Sep 17 00:00:00 2001 From: waken <33921191+mc373906408@users.noreply.github.com> Date: Sun, 14 Jul 2024 09:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E5=8D=95?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3udp=5Fserver=E8=87=AA=E5=AE=9A=E4=B9=89vhost?= =?UTF-8?q?=E3=80=81app=E4=B8=BA=E7=A9=BA=E9=97=AE=E9=A2=98=20(#3714=20#37?= =?UTF-8?q?02)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/RtpServer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }