diff options
author | erdgeist <> | 2008-10-24 00:04:02 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-24 00:04:02 +0000 |
commit | 06b503a11ff097b7bcecb50ca08d984aea9244a6 (patch) | |
tree | 45252da2eec335f0c1f51721dab3cf6a4fcf712d /opentracker.c | |
parent | 80fd4dc738883519a7dc278259a0e56697b077b8 (diff) |
Enable stats restricting config file option
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index fa63378..212e277 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -335,6 +335,11 @@ int parse_configfile( char * config_filename ) { | |||
335 | } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) { | 335 | } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) { |
336 | set_config_option( &g_accesslist_filename, p+17 ); | 336 | set_config_option( &g_accesslist_filename, p+17 ); |
337 | #endif | 337 | #endif |
338 | #ifdef WANT_RESTRICT_STATS | ||
339 | } else if(!byte_diff(p, 12, "access.stats" ) && isspace(p[12])) { | ||
340 | if( !scan_ip4( p+13, tmpip )) goto parse_error; | ||
341 | accesslist_blessip( tmpip, OT_PERMISSION_MAY_STAT ); | ||
342 | #endif | ||
338 | } else if(!byte_diff(p, 20, "tracker.redirect_url" ) && isspace(p[20])) { | 343 | } else if(!byte_diff(p, 20, "tracker.redirect_url" ) && isspace(p[20])) { |
339 | set_config_option( &g_redirecturl, p+21 ); | 344 | set_config_option( &g_redirecturl, p+21 ); |
340 | #ifdef WANT_SYNC_BATCH | 345 | #ifdef WANT_SYNC_BATCH |