Fixed handling of port
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@17 63283fd4-ec1e-0410-9879-cb7f675518da
This commit is contained in:
parent
cb75a4b281
commit
e771f670fb
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ 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',
|
||||
|
@ -57,7 +58,7 @@ def main():
|
|||
tftp_options['blksize'] = int(options.blocksize)
|
||||
|
||||
tclient = tftpy.TftpClient(options.host,
|
||||
options.port,
|
||||
int(options.port),
|
||||
tftp_options)
|
||||
|
||||
tclient.download(options.filename,
|
||||
|
|
Reference in a new issue