mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix opening tcp server on macos
This commit is contained in:
parent
ee663fa322
commit
f531d2e358
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ public:
|
|||
}
|
||||
int opt = 1;
|
||||
int flags = SO_REUSEADDR;
|
||||
# ifndef _WIN32
|
||||
# if !defined(_WIN32) && !defined(__APPLE__)
|
||||
flags |= SO_REUSEPORT;
|
||||
# endif
|
||||
if (setsockopt(descriptor, SOL_SOCKET, flags, (const char*)&opt, sizeof(opt))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue