do not use redirection in case of direct download after pending state
honor the allow_redirection flag after activating client from pending state.master
parent
6c910f2652
commit
2f834d6628
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue