Fixed handling of port
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@17 63283fd4-ec1e-0410-9879-cb7f675518damaster
parent
cb75a4b281
commit
e771f670fb
|
@ -29,6 +29,7 @@ def main():
|
||||||
dest='blocksize',
|
dest='blocksize',
|
||||||
help='udp packet size to use (default: 512)',
|
help='udp packet size to use (default: 512)',
|
||||||
default=512)
|
default=512)
|
||||||
|
# FIXME - default should be same as --filename
|
||||||
parser.add_option('-o',
|
parser.add_option('-o',
|
||||||
'--output',
|
'--output',
|
||||||
action='store',
|
action='store',
|
||||||
|
@ -57,7 +58,7 @@ def main():
|
||||||
tftp_options['blksize'] = int(options.blocksize)
|
tftp_options['blksize'] = int(options.blocksize)
|
||||||
|
|
||||||
tclient = tftpy.TftpClient(options.host,
|
tclient = tftpy.TftpClient(options.host,
|
||||||
options.port,
|
int(options.port),
|
||||||
tftp_options)
|
tftp_options)
|
||||||
|
|
||||||
tclient.download(options.filename,
|
tclient.download(options.filename,
|
||||||
|
|
Reference in New Issue