From 080b0be5592691d38bb2bd9cdde8bd69071d70d2 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 17 Feb 2024 14:01:14 +0100 Subject: [PATCH] updating udp socket comparision since internal IP changed with kernel update --- AutismBotIngame/python/udp_redirecter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AutismBotIngame/python/udp_redirecter.py b/AutismBotIngame/python/udp_redirecter.py index c8da2403..623325ea 100644 --- a/AutismBotIngame/python/udp_redirecter.py +++ b/AutismBotIngame/python/udp_redirecter.py @@ -30,7 +30,8 @@ if __name__ == '__main__': port = addr[1] #print('port: ', port, " ip: ", ip) #print(data) - if not data or ip != local_ip: + # update 17th february 2024: updating the kernel made the sourcemod UDP socket come from 127.0.0.0 instead of 127.0.0.1 + if not data or not ip.startswith('127.0.0') or not local_ip.startswith('127.0.0'): continue sock_external.sendto(data.encode(), (udp_external_ip, local_port)) except KeyboardInterrupt: