Исправление. Не соотв. протоколу
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user