Supplying a default blksize options in the server.
Fix for 1633625. git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@60 63283fd4-ec1e-0410-9879-cb7f675518damaster
parent
07906cdbd9
commit
c7d86d36df
|
@ -29,7 +29,6 @@ def main():
|
|||
dest='blocksize',
|
||||
help='udp packet size to use (default: 512)',
|
||||
default=512)
|
||||
# FIXME - default should be same as --filename
|
||||
parser.add_option('-o',
|
||||
'--output',
|
||||
action='store',
|
||||
|
|
|
@ -185,7 +185,7 @@ class TftpServerHandler(TftpSession):
|
|||
self.mode = None
|
||||
self.filename = None
|
||||
self.sock = False
|
||||
self.options = {}
|
||||
self.options = { 'blksize': DEF_BLKSIZE }
|
||||
self.blocknumber = 0
|
||||
self.buffer = None
|
||||
self.fileobj = None
|
||||
|
|
Reference in New Issue