pypxe / PyPXE

Pure Python PXE (DHCP-(Proxy)/TFTP/HTTP/NBD) Server
MIT License
547 stars 125 forks source link

TypeError: can only concatenate str (not "bytes") to str #186

Closed Sonny333Black closed 3 years ago

Sonny333Black commented 4 years ago

please can you fix in tftp.py the line 131 response += str(self.blksize) + b'\x00' I think there is missing a part in the line.

before response += str(self.blksize) + b'\x00' after response += str(self.blksize).encode('ascii') + b'\x00'

icb- commented 3 years ago

This should be fixed now that PR #187 is merged.