Skip to content

Commit

Permalink
HevSocks5Session: Break UDP forwarding on TCP lost.
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed May 10, 2021
1 parent ba5073b commit 925902b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hev-socks5-session.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ socks5_do_fwd_udp (HevSocks5Session *self)
if (res_b >= 0)
res_b = udp_fwd_b (self);

if (res_f < 0 && res_b < 0)
if (res_f < 0 || res_b < 0)
break;
else if (res_f > 0 || res_b > 0)
type = HEV_TASK_YIELD;
Expand Down

0 comments on commit 925902b

Please sign in to comment.