Skip to content

Commit

Permalink
Reset is_dns flag after reusing UDP connection
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Dec 27, 2018
1 parent 9965ce0 commit 88bc6f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tun2socks/SocksUdpGwClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ void SocksUdpGwClient_SubmitPacket (SocksUdpGwClient *o, BAddr local_addr, BAddr
// if no connection and can't create a new one, reuse the least recently used une
if (!con && o->num_connections == o->max_connections) {
con = reuse_connection(o, conaddr);

// reinit dns status
con->is_dns = is_dns;
}

if (!con) {
Expand Down

0 comments on commit 88bc6f6

Please sign in to comment.