mirror of
https://github.com/hufrea/byedpi.git
synced 2025-01-03 04:49:47 +00:00
Minor fix
This commit is contained in:
parent
19171cfeca
commit
fc4e6b22bb
8
proxy.c
8
proxy.c
@ -508,14 +508,8 @@ static inline int on_tunnel(struct poolhd *pool, struct eval *val,
|
|||||||
|
|
||||||
int try_again(struct poolhd *pool, struct eval *val)
|
int try_again(struct poolhd *pool, struct eval *val)
|
||||||
{
|
{
|
||||||
if (val->flag != FLAG_CONN) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
if (val->recv_count) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
struct eval *client = val->pair;
|
struct eval *client = val->pair;
|
||||||
if (client->try_count >= params.dp_count) {
|
if (client->try_count + 1 >= params.dp_count) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
LOG(LOG_S, "try next params: %d\n", client->try_count + 1);
|
LOG(LOG_S, "try next params: %d\n", client->try_count + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user