summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorerdgeist <>2007-11-01 20:13:03 +0000
committererdgeist <>2007-11-01 20:13:03 +0000
commit853dc33be26a8c5fbad59f0193909366cdb34c2c (patch)
treec4e14f5430e1cab8c04e79f63764f77c9109779e /trackerlogic.h
parentdc8e88979777a662c76e010a3f90df1c382aae9a (diff)
Allow for more than one admin ip address
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index ccd3465..9cbffc1 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -42,6 +42,9 @@ typedef struct {
42 42
43#define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION/2 + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) 43#define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION/2 + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) )
44 44
45/* Number of tracker admin ip addresses allowed */
46#define OT_ADMINIP_MAX 64
47
45/* We maintain a list of 4096 pointers to sorted list of ot_torrent structs 48/* We maintain a list of 4096 pointers to sorted list of ot_torrent structs
46 Sort key is, of course, its hash */ 49 Sort key is, of course, its hash */
47#define OT_BUCKET_COUNT 1024 50#define OT_BUCKET_COUNT 1024