summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2022-02-08 15:50:15 +0100
committertiptorrent development team <tiptorrent@soleta.eu>2022-02-08 15:52:55 +0100
commit2f834d6628e715a20af9880bee700d69efd5e38c (patch)
tree0fffc19a591f5d363ccc96b204e5202e9753aae5 /src/core.c
parent6c910f2652c0ac5d14568082748856c16e9ce33b (diff)
do not use redirection in case of direct download after pending state
honor the allow_redirection flag after activating client from pending state.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
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);