Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
encode blksize to bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p authored and icb- committed Dec 7, 2020
1 parent 33dec45 commit ce311ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypxe/tftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def reply_options(self):
response = struct.pack("!H", 6)
if self.changed_blksize:
response += b'blksize' + b'\x00'
response += str(self.blksize) + b'\x00'
response += str(self.blksize).encode('ascii') + b'\x00'
if self.tsize:
response += b'tsize' + b'\x00'
response += str(self.filesize).encode('ascii') + b'\x00'
Expand Down

0 comments on commit ce311ad

Please sign in to comment.