2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-30 12:57:46 +00:00

Restore Python 3 compatibility for pxe

The changes accidentally broke python 3, make a
bytes explicit to fix.
This commit is contained in:
Jarrod Johnson 2020-03-24 17:54:07 -04:00
parent 00681489c7
commit 0c96882fda

View File

@ -368,7 +368,7 @@ def check_reply(node, info, packet, sock, cfg, reqview):
repview = repview[28:]
repview[0:1] = b'\x02'
repview[1:10] = reqview[1:10] # duplicate txid, hwlen, and others
repview[10:11] = '\x80' # always set broadcast
repview[10:11] = b'\x80' # always set broadcast
hwaddr = bytes(reqview[28:44])
repview[28:44] = reqview[28:44] # copy chaddr field
repview[20:24] = myipn