|
|
@ -35,12 +35,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
/* Globals */ |
|
|
|
/* Globals */ |
|
|
|
time_t g_now_seconds; |
|
|
|
time_t g_now_seconds; |
|
|
|
char * g_redirecturl = NULL; |
|
|
|
char * g_redirecturl; |
|
|
|
uint32_t g_tracker_id; |
|
|
|
uint32_t g_tracker_id; |
|
|
|
volatile int g_opentracker_running = 1; |
|
|
|
volatile int g_opentracker_running = 1; |
|
|
|
int g_self_pipe[2]; |
|
|
|
int g_self_pipe[2]; |
|
|
|
|
|
|
|
|
|
|
|
static char * g_serverdir = NULL; |
|
|
|
static char * g_serverdir; |
|
|
|
|
|
|
|
|
|
|
|
static void panic( const char *routine ) { |
|
|
|
static void panic( const char *routine ) { |
|
|
|
fprintf( stderr, "%s: %s\n", routine, strerror(errno) ); |
|
|
|
fprintf( stderr, "%s: %s\n", routine, strerror(errno) ); |
|
|
@ -368,6 +368,8 @@ int parse_configfile( char * config_filename ) { |
|
|
|
if( !scan_ip6( p+13, tmpip )) goto parse_error; |
|
|
|
if( !scan_ip6( p+13, tmpip )) goto parse_error; |
|
|
|
accesslist_blessip( tmpip, OT_PERMISSION_MAY_STAT ); |
|
|
|
accesslist_blessip( tmpip, OT_PERMISSION_MAY_STAT ); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
} else if(!byte_diff(p, 17, "access.stats_path" ) && isspace(p[17])) { |
|
|
|
|
|
|
|
set_config_option( &g_stats_path, p+18 ); |
|
|
|
#ifdef WANT_IP_FROM_PROXY |
|
|
|
#ifdef WANT_IP_FROM_PROXY |
|
|
|
} else if(!byte_diff(p, 12, "access.proxy" ) && isspace(p[12])) { |
|
|
|
} else if(!byte_diff(p, 12, "access.proxy" ) && isspace(p[12])) { |
|
|
|
if( !scan_ip6( p+13, tmpip )) goto parse_error; |
|
|
|
if( !scan_ip6( p+13, tmpip )) goto parse_error; |
|
|
|