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){