mirror of
https://github.com/Wind4/vlmcsd
synced 2025-09-08 11:45:34 +00:00
vlmcsd-1107-2016-12-12-Hotbird64
This commit is contained in:
@@ -294,7 +294,6 @@ SOCKET connectToAddress(const char *const addr, const int AddressFamily, int_fas
|
||||
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
#ifdef SIMPLE_SOCKETS
|
||||
|
||||
static int_fast8_t allowSocketReuse(SOCKET s)
|
||||
{
|
||||
@@ -322,6 +321,8 @@ static int_fast8_t allowSocketReuse(SOCKET s)
|
||||
}
|
||||
|
||||
|
||||
#ifdef SIMPLE_SOCKETS
|
||||
|
||||
int listenOnAllAddresses()
|
||||
{
|
||||
uint32_t port_listen;
|
||||
@@ -575,14 +576,7 @@ static int listenOnAddress(const struct addrinfo *const ai, SOCKET *s)
|
||||
}
|
||||
# endif
|
||||
|
||||
# if !_WIN32 && !__CYGWIN__
|
||||
if (setsockopt(*s, SOL_SOCKET, SO_REUSEADDR, (sockopt_t)&socketOption, sizeof(socketOption)))
|
||||
{
|
||||
# ifdef _PEDANTIC
|
||||
printerrorf("Warning: %s does not support socket option SO_REUSEADDR: %s\n", ipstr, vlmcsd_strerror(socket_errno));
|
||||
# endif // _PEDANTIC
|
||||
}
|
||||
# endif // !_WIN32 && !__CYGWIN__
|
||||
allowSocketReuse(*s);
|
||||
|
||||
# if HAVE_FREEBIND
|
||||
# if (defined(IP_NONLOCALOK) || __FreeBSD_kernel__ || __FreeBSD__) && !defined(IPV6_BINDANY)
|
||||
|
Reference in New Issue
Block a user