fix msvc build again

This commit is contained in:
MihailRis 2024-11-27 16:07:21 +03:00
parent 9e8addbd7d
commit 1b04a2a61e

View File

@ -506,7 +506,7 @@ public:
# ifndef _WIN32
flags |= SO_REUSEPORT;
# endif
if (setsockopt(descriptor, SOL_SOCKET, flags, &opt, sizeof(opt))) {
if (setsockopt(descriptor, SOL_SOCKET, flags, (const char*)&opt, sizeof(opt))) {
closesocket(descriptor);
throw std::runtime_error("setsockopt");
}