From e771f670fb35d07c0d5267e9ecccdb394212f9ee Mon Sep 17 00:00:00 2001 From: msoulier Date: Thu, 5 Oct 2006 16:38:33 +0000 Subject: Fixed handling of port git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@17 63283fd4-ec1e-0410-9879-cb7f675518da --- bin/tftpy_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/tftpy_client.py b/bin/tftpy_client.py index f253ee9..3cbae34 100644 --- a/bin/tftpy_client.py +++ b/bin/tftpy_client.py @@ -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, -- cgit v1.2.1