From 853dc33be26a8c5fbad59f0193909366cdb34c2c Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 1 Nov 2007 20:13:03 +0000 Subject: Allow for more than one admin ip address --- trackerlogic.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index ccd3465..9cbffc1 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -42,6 +42,9 @@ typedef struct { #define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION/2 + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) +/* Number of tracker admin ip addresses allowed */ +#define OT_ADMINIP_MAX 64 + /* We maintain a list of 4096 pointers to sorted list of ot_torrent structs Sort key is, of course, its hash */ #define OT_BUCKET_COUNT 1024 -- cgit v1.2.3