diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-08 15:50:15 +0100 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-08 15:52:55 +0100 |
commit | 2f834d6628e715a20af9880bee700d69efd5e38c (patch) | |
tree | 0fffc19a591f5d363ccc96b204e5202e9753aae5 | |
parent | 6c910f2652c0ac5d14568082748856c16e9ce33b (diff) |
do not use redirection in case of direct download after pending state
honor the allow_redirection flag after activating client from pending state.
-rw-r--r-- | src/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |