updating udp socket comparision since internal IP changed with kernel update
This commit is contained in:
parent
2d9f9bf219
commit
080b0be559
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user