From ede8fd9f41079980af94289ca13a348d8b013f5e Mon Sep 17 00:00:00 2001 From: Trumeet Date: Tue, 7 Sep 2021 11:39:05 -0700 Subject: fix: use \w for disconnection matching to prevent IP leak --- mcin/mc_regex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcin/mc_regex.h b/mcin/mc_regex.h index 069f2a2..25aeca5 100644 --- a/mcin/mc_regex.h +++ b/mcin/mc_regex.h @@ -2,7 +2,7 @@ #define _MC_REGEX_H #define MC_REGEX \ "^.* joined the game," \ -"^.* lost connection: .*," \ +"^\\w* lost connection: .*," \ "^Stopping server," \ "^Starting minecraft server version .*," \ "^Done \\(.*s\\)! For help type \"help\"," \ -- cgit v1.2.3