guid is hex values

bug/bundler_fix
Brent Cook 2017-08-21 03:44:02 -05:00
parent 8700a36858
commit 429824b5c9
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ class Packet < GroupTlv
def to_r(session_guid = nil, key = nil)
xor_key = (rand(254) + 1).chr + (rand(254) + 1).chr + (rand(254) + 1).chr + (rand(254) + 1).chr
raw = [(session_guid || "0" * SESSION_GUID_SIZE).gsub(/-/, '')].pack('H*')
raw = [(session_guid || '00' * SESSION_GUID_SIZE).gsub(/-/, '')].pack('H*')
tlv_data = GroupTlv.instance_method(:to_r).bind(self).call
if key && key[:key] && key[:type] == ENC_FLAG_AES256