diff options
author | erdgeist <> | 2009-06-17 15:06:31 +0000 |
---|---|---|
committer | erdgeist <> | 2009-06-17 15:06:31 +0000 |
commit | 65d7d9b89cc44b85d5ef8522276f04c53846acf2 (patch) | |
tree | d45907fdefb44d0525ffe7512fe63ea93eb41d51 /opentracker.c | |
parent | 2a17f847aeb948d1f788b3454fa66b905ba2f28a (diff) |
Allow /stats to be located anywhere in your trackers path
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index e2e48f2..c36ceaa 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -35,12 +35,12 @@ | |||
35 | 35 | ||
36 | /* Globals */ | 36 | /* Globals */ |
37 | time_t g_now_seconds; | 37 | time_t g_now_seconds; |
38 | char * g_redirecturl = NULL; | 38 | char * g_redirecturl; |
39 | uint32_t g_tracker_id; | 39 | uint32_t g_tracker_id; |
40 | volatile int g_opentracker_running = 1; | 40 | volatile int g_opentracker_running = 1; |
41 | int g_self_pipe[2]; | 41 | int g_self_pipe[2]; |
42 | 42 | ||
43 | static char * g_serverdir = NULL; | 43 | static char * g_serverdir; |
44 | 44 | ||
45 | static void panic( const char *routine ) { | 45 | static void panic( const char *routine ) { |
46 | fprintf( stderr, "%s: %s\n", routine, strerror(errno) ); | 46 | fprintf( stderr, "%s: %s\n", routine, strerror(errno) ); |
@@ -368,6 +368,8 @@ int parse_configfile( char * config_filename ) { | |||
368 | if( !scan_ip6( p+13, tmpip )) goto parse_error; | 368 | if( !scan_ip6( p+13, tmpip )) goto parse_error; |
369 | accesslist_blessip( tmpip, OT_PERMISSION_MAY_STAT ); | 369 | accesslist_blessip( tmpip, OT_PERMISSION_MAY_STAT ); |
370 | #endif | 370 | #endif |
371 | } else if(!byte_diff(p, 17, "access.stats_path" ) && isspace(p[17])) { | ||
372 | set_config_option( &g_stats_path, p+18 ); | ||
371 | #ifdef WANT_IP_FROM_PROXY | 373 | #ifdef WANT_IP_FROM_PROXY |
372 | } else if(!byte_diff(p, 12, "access.proxy" ) && isspace(p[12])) { | 374 | } else if(!byte_diff(p, 12, "access.proxy" ) && isspace(p[12])) { |
373 | if( !scan_ip6( p+13, tmpip )) goto parse_error; | 375 | if( !scan_ip6( p+13, tmpip )) goto parse_error; |