From f6f3984be782e6c42a320081e00533fa30b45140 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Tue, 8 Feb 2022 11:58:53 +0100 Subject: 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. --- src/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.h') 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, -- cgit v1.2.3-18-g5258