From 9861091b1888b17f2be084b3b5b5c93ee5d3d562 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Tue, 10 May 2022 14:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=85=88=E4=BD=BF=E7=94=A8ipv4?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpart/ZLToolKit | 2 +- src/Rtp/RtpSender.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdpart/ZLToolKit b/3rdpart/ZLToolKit index 74ddbaa7..75e6df65 160000 --- a/3rdpart/ZLToolKit +++ b/3rdpart/ZLToolKit @@ -1 +1 @@ -Subproject commit 74ddbaa7e7c6995e94062a5ba1c7f0f2adef43f4 +Subproject commit 75e6df651421e601714e1ea5892e1d5a1783e7e8 diff --git a/src/Rtp/RtpSender.cpp b/src/Rtp/RtpSender.cpp index e4154fc5..fda55c5a 100644 --- a/src/Rtp/RtpSender.cpp +++ b/src/Rtp/RtpSender.cpp @@ -45,7 +45,7 @@ void RtpSender::startSend(const MediaSourceEvent::SendRtpArgs &args, const funct WorkThreadPool::Instance().getPoller()->async([cb, args, weak_self, poller, local_port]() { struct sockaddr_storage addr; //切换线程目的是为了dns解析放在后台线程执行 - if (!SockUtil::getDomainIP(args.dst_url.data(), args.dst_port, addr)) { + if (!SockUtil::getDomainIP(args.dst_url.data(), args.dst_port, addr, AF_INET, SOCK_DGRAM, IPPROTO_UDP)) { poller->async([args, cb, local_port]() { //切回自己的线程 cb(local_port, SockException(Err_dns, StrPrinter << "dns解析域名失败:" << args.dst_url));