From 2f834d6628e715a20af9880bee700d69efd5e38c Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Tue, 8 Feb 2022 15:50:15 +0100 Subject: do not use redirection in case of direct download after pending state honor the allow_redirection flag after activating client from pending state. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core.c b/src/core.c index 986aa4f..dafb4ff 100644 --- a/src/core.c +++ b/src/core.c @@ -380,7 +380,7 @@ bool tip_client_redirect(struct tip_client *cli) struct tip_client_redirect *redir, *next; char addr[INET_ADDRSTRLEN + 1]; - if (!max_redirect) + if (!max_redirect || !cli->allow_redirect) return false; inet_ntop(AF_INET, &cli->addr.sin_addr, addr, INET_ADDRSTRLEN); -- cgit v1.2.3-18-g5258