From 39c4286864531298c9b3f94b99f16958304beaa0 Mon Sep 17 00:00:00 2001 From: sakitsuki_asahi Date: Sun, 3 Aug 2025 15:12:04 +0900 Subject: [PATCH] 1 --- src/cpp/RSA-Chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/RSA-Chat.cpp b/src/cpp/RSA-Chat.cpp index 25f9526..9f03d22 100644 --- a/src/cpp/RSA-Chat.cpp +++ b/src/cpp/RSA-Chat.cpp @@ -170,7 +170,7 @@ int main(int argn,char* argc[]){ addrinfo hints{}; memset(&hints, 0, sizeof(hints)); - hints.ai_family = AF_UNSPEC; // 接受IPv4/IPv6 + hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; std::cout << "UDP socket opened on port " << port << "\n"; if(send_mode){