summaryrefslogtreecommitdiffstats
path: root/src/core.h
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2022-02-08 11:58:53 +0100
committertiptorrent development team <tiptorrent@soleta.eu>2022-02-08 12:09:39 +0100
commitf6f3984be782e6c42a320081e00533fa30b45140 (patch)
treef7108649edf3d0f4f59793c06c681b6b966462c8 /src/core.h
parent28d7a25a89c458fcb3851dda2a97fbbc97acc3d7 (diff)
allow to specify maximum number of redirections with -r
For example, -r/--redirect 3 specifies that the maximum number of redirections per client is 3. if -r/--redirect is specified with no argument, then the argument specified by -n/--max-clients is used. If -n/--max-clients is not specified and -r/--redirect is specifed with no argument, then default value is 3.
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.h b/src/core.h
index a8d8736..c4d6379 100644
--- a/src/core.h
+++ b/src/core.h
@@ -13,8 +13,8 @@
extern const char *root;
#define DEFAULT_MAX_CLIENTS 3
extern int max_clients;
+extern int max_redirect;
extern int num_clients;
-extern bool redirect;
enum tip_client_state {
TIP_CLIENT_PENDING = 0,