|
|
@ -562,6 +562,12 @@ int main( int argc, char **argv ) {
|
|
|
|
noipv6=1;
|
|
|
|
noipv6=1;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WANT_DEV_RANDOM
|
|
|
|
|
|
|
|
srandomdev();
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
srandom( time(NULL) );
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
while( scanon ) {
|
|
|
|
while( scanon ) {
|
|
|
|
switch( getopt( argc, argv, ":i:p:A:P:d:u:r:s:f:l:v"
|
|
|
|
switch( getopt( argc, argv, ":i:p:A:P:d:u:r:s:f:l:v"
|
|
|
|
#ifdef WANT_ACCESSLIST_BLACK
|
|
|
|
#ifdef WANT_ACCESSLIST_BLACK
|
|
|
@ -617,6 +623,9 @@ int main( int argc, char **argv ) {
|
|
|
|
ot_try_bind( serverip, 6969, FLAG_UDP );
|
|
|
|
ot_try_bind( serverip, 6969, FLAG_UDP );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !g_udp_workers )
|
|
|
|
|
|
|
|
udp_init( -1, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WANT_SYSLOGS
|
|
|
|
#ifdef WANT_SYSLOGS
|
|
|
|
openlog( "opentracker", 0, LOG_USER );
|
|
|
|
openlog( "opentracker", 0, LOG_USER );
|
|
|
|
setlogmask(LOG_UPTO(LOG_INFO));
|
|
|
|
setlogmask(LOG_UPTO(LOG_INFO));
|
|
|
|