Revert "common: Restrict UDP binding to localhost only"
This reverts commit 29ef2c82db
.
This commit is contained in:
parent
8f57dd84b3
commit
76b71d509b
|
@ -284,7 +284,7 @@ void UDPSocket::open(unsigned short localPort)
|
|||
size_t length = sizeof(address);
|
||||
bzero(&address,length);
|
||||
address.sin_family = AF_INET;
|
||||
address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
address.sin_addr.s_addr = INADDR_ANY;
|
||||
address.sin_port = htons(localPort);
|
||||
if (bind(mSocketFD,(struct sockaddr*)&address,length)<0) {
|
||||
char buf[100];
|
||||
|
|
Loading…
Reference in New Issue