diff --git a/admin-interface/lib/rcon-client.rb b/admin-interface/lib/rcon-client.rb index 17003cf..f3f0e6b 100644 --- a/admin-interface/lib/rcon-client.rb +++ b/admin-interface/lib/rcon-client.rb @@ -172,7 +172,7 @@ def build_packet(body, type=2, id=1, hide_content: false) packet_body = body packet_empty_string = '' packet = [packet_id, packet_type, packet_body, packet_empty_string] # Skip size for now - size = packet.pack(@@pack_string[1..]).length # Get packet size by packing what we have and checking length. + size = packet.pack(@@pack_string[2..]).length # Get packet size by packing what we have and checking length. packet.unshift(size) # log "Packet: " << packet.inspect packed = packet.pack(@@pack_string)