From 09d48b00f8925cda04b7ed64b27a604c3c9a244f Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 19 Aug 2022 19:55:08 -0700 Subject: [PATCH] Reset remotenode when discarding STUN/hole punch packet Fixes some wild behavior when a lot of hole punching requests are coming in. --- src/i_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i_tcp.c b/src/i_tcp.c index 1ca1b7f22..48f04b2be 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -595,13 +595,13 @@ static boolean SOCK_Get(void) #ifdef USE_STUN if (STUN_got_response(doomcom->data, c)) { - return false; + break; } #endif if (hole_punch(c)) { - return false; + break; } // find remote node number