mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Enable broadcast permissions in socket requests
This commit is contained in:
parent
089eab96d7
commit
a45f6d9438
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
ERROR_LOG_FMT(IOS_NET, "Failed to set SO_NOSIGPIPE on socket");
|
||||
#endif
|
||||
|
||||
BOOL opt_broadcast = TRUE;
|
||||
setsockopt(fd, SOL_SOCKET, SO_BROADCAST, (char*)&opt_broadcast, sizeof(opt_broadcast));
|
||||
}
|
||||
|
||||
SetLastNetError(wii_fd);
|
||||
|
|
Loading…
Add table
Reference in a new issue