mirror of
https://github.com/Wind4/vlmcsd
synced 2025-12-19 22:55:52 +00:00
vlmcsd-svn998-2016-08-11-Hotbird64
This commit is contained in:
13
vlmcsd.c
13
vlmcsd.c
@@ -279,7 +279,11 @@ static __noreturn void usage()
|
||||
#if HAVE_GETIFADDR
|
||||
" -o 0|1|2|3\t\tset protection level against clients with public IP addresses (default 0)\n"
|
||||
#else // !HAVE_GETIFADDR
|
||||
#ifndef USE_MSRPC
|
||||
" -o 0|2\t\tset protection level against clients with public IP addresses (default 0)\n"
|
||||
#else // USE_MSRPC
|
||||
" -o 0|2\t\tset protection level against clients with public IP addresses (default 0). Limited use with MS RPC\n"
|
||||
#endif // USE_MSRPC
|
||||
#endif // !HAVE_GETIFADDR
|
||||
#endif // !defined(NO_PRIVATE_IP_DETECT)
|
||||
#ifndef NO_SOCKETS
|
||||
@@ -1678,7 +1682,14 @@ int newmain()
|
||||
}
|
||||
#endif // NO_INI_FILE
|
||||
|
||||
#if !defined(NO_LIMIT) && !defined(NO_SOCKETS) && !__minix__ && !defined(USE_MSRPC)
|
||||
#if defined(USE_MSRPC) && !defined(NO_PRIVATE_IP_DETECT)
|
||||
if (PublicIPProtectionLevel)
|
||||
{
|
||||
printerrorf("Warning: Public IP address protection using MS RPC is poor. See vlmcsd.8\n");
|
||||
}
|
||||
#endif // defined(USE_MSRPC) && !defined(NO_PRIVATE_IP_DETECT)
|
||||
|
||||
#if !defined(NO_LIMIT) && !defined(NO_SOCKETS) && !__minix__ && !defined(USE_MSRPC)
|
||||
allocateSemaphore();
|
||||
#endif // !defined(NO_LIMIT) && !defined(NO_SOCKETS) && __minix__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user