Enable broadcast permissions in socket requests

This commit is contained in:
SMarioMan
2023-02-15 07:59:38 -05:00
committed by GitHub
parent 089eab96d7
commit a45f6d9438

View File

@ -872,6 +872,9 @@ s32 WiiSockMan::AddSocket(s32 fd, bool is_rw)
if (setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &opt_no_sigpipe, sizeof(opt_no_sigpipe)) < 0) if (setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &opt_no_sigpipe, sizeof(opt_no_sigpipe)) < 0)
ERROR_LOG_FMT(IOS_NET, "Failed to set SO_NOSIGPIPE on socket"); ERROR_LOG_FMT(IOS_NET, "Failed to set SO_NOSIGPIPE on socket");
#endif #endif
BOOL opt_broadcast = TRUE;
setsockopt(fd, SOL_SOCKET, SO_BROADCAST, (char*)&opt_broadcast, sizeof(opt_broadcast));
} }
SetLastNetError(wii_fd); SetLastNetError(wii_fd);