Исправление. Не соотв. протоколу

This commit is contained in:
sasha80
2025-04-24 09:30:24 +03:00
parent 2db018401f
commit ddeeb64c2d
2 changed files with 5 additions and 2 deletions

View File

@@ -209,14 +209,17 @@ func poll_receive_udp(sock: Socket) -> bool:
var addr_port: = [addr, port]
if units.has(addr_port):
units[addr_port].parse(data, tick)
continue
if unit_keys.has(port):
var key = unit_keys[port]
if units.has(key):
units[key].parse(data, tick)
continue
port = sock.get_local_port()
var key = ['*', port]
if units.has(key):
units[key].parse(data, tick)
continue
return false