From 266a0ca5b44b5ef26e31dbf16386ab518f97e440 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 18 Jun 2022 13:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtest=5Frtp=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_rtp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_rtp.cpp b/tests/test_rtp.cpp index 18047b8a..5146d380 100644 --- a/tests/test_rtp.cpp +++ b/tests/test_rtp.cpp @@ -38,6 +38,7 @@ static bool loadFile(const char *path){ uint16_t len; char rtp[0xFFFF]; struct sockaddr_storage addr = {0}; + addr.ss_family = AF_INET; auto sock = Socket::createSocket(); size_t total_size = 0; while (true) {