From 65d7d9b89cc44b85d5ef8522276f04c53846acf2 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 17 Jun 2009 15:06:31 +0000 Subject: Allow /stats to be located anywhere in your trackers path --- trackerlogic.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index d1ef063..f6128fd 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -15,12 +15,15 @@ /* Libowfat */ #include "byte.h" #include "io.h" +#include "iob.h" +#include "array.h" /* Opentracker */ #include "trackerlogic.h" #include "ot_mutex.h" #include "ot_stats.h" #include "ot_clean.h" +#include "ot_http.h" #include "ot_accesslist.h" #include "ot_fullscrape.h" #include "ot_livesync.h" @@ -394,6 +397,10 @@ void trackerlogic_init( ) { srandom( time(NULL) ); g_tracker_id = random(); + if( !g_stats_path ) + g_stats_path = "stats"; + g_stats_path_len = strlen( g_stats_path ); + /* Initialise background worker threads */ mutex_init( ); clean_init( ); -- cgit v1.2.3