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-cb7f675518da
master
msoulier 2007-02-17 01:40:02 +00:00
parent 07906cdbd9
commit c7d86d36df
2 changed files with 1 additions and 2 deletions

View File

@ -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',

View File

@ -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