]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Enable stats restricting config file option
authorerdgeist <>
Fri, 24 Oct 2008 00:04:02 +0000 (00:04 +0000)
committererdgeist <>
Fri, 24 Oct 2008 00:04:02 +0000 (00:04 +0000)
opentracker.c

index fa63378d35d538cdeeab6b1f959eb029eec7e333..212e2777a986672d98c3ea77007dc9fa6d9cf8c4 100644 (file)
@@ -334,6 +334,11 @@ int parse_configfile( char * config_filename ) {
 #elif defined( WANT_ACCESSLIST_WHITE )
     } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) {
       set_config_option( &g_accesslist_filename, p+17 );
+#endif
+#ifdef WANT_RESTRICT_STATS
+    } else if(!byte_diff(p, 12, "access.stats" ) && isspace(p[12])) {
+      if( !scan_ip4( p+13, tmpip )) goto parse_error;
+      accesslist_blessip( tmpip, OT_PERMISSION_MAY_STAT );
 #endif
     } else if(!byte_diff(p, 20, "tracker.redirect_url" ) && isspace(p[20])) {
       set_config_option( &g_redirecturl, p+21 );